/********************************************************************
* Functions: char_int and int_char
* Purpose:  Convert from one variable type to another
*******************************************************************/

unsigned char char_int(int input_speed)
{
        return (input_speed + 128);
}


int int_char (unsigned char input_pwm) //turns unsigned char inputs to signed int scale
{
        return ((int)input_pwm-128);
}

