mplx_select(current_input);
adc_in = analogRead(0);
+ // TODO: New format on stick values
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];
}
if ( do_channel )
{
set_ppm_output( HIGH );
+ // TODO: New format on stick values
long next_timer = (( chwidht * model.stick[cchannel] ) + chmin);
// Do sanity-check of next_timer compared to chmax ...
while ( chmax < next_timer ) next_timer--;
{
int current_input;
for (current_input=0; current_input<=7; current_input++) {
+ // TODO: New format on stick values
int v = (int)(model.stick[current_input] * 100);
Serial.print("Input #");
lcd.print(" ");
lcd.setCursor(col, row);
// Display uses percents, while PPM uses ratio....
+ // TODO: New format on stick values
int v = (int)(model.stick[current_input] * 100);
lcd.print(v);
}