model.stick[current_input] = ((float)adc_in - (float)input_cal.min[current_input]) / (float)(input_cal.max[current_input]-input_cal.min[current_input]);
if ( model.rev[current_input] ) model.stick[current_input] = 1.0f - model.stick[current_input];
}
model.stick[current_input] = ((float)adc_in - (float)input_cal.min[current_input]) / (float)(input_cal.max[current_input]-input_cal.min[current_input]);
if ( model.rev[current_input] ) model.stick[current_input] = 1.0f - model.stick[current_input];
}
long next_timer = (( chwidht * model.stick[cchannel] ) + chmin);
// Do sanity-check of next_timer compared to chmax ...
while ( chmax < next_timer ) next_timer--;
long next_timer = (( chwidht * model.stick[cchannel] ) + chmin);
// Do sanity-check of next_timer compared to chmax ...
while ( chmax < next_timer ) next_timer--;