fixed range of debug printing

This commit is contained in:
Lorenz Meier 2012-08-28 22:50:47 +02:00
parent a1963805e7
commit 68ac20cc3a
1 changed files with 2 additions and 2 deletions

View File

@ -847,8 +847,8 @@ Sensors::parameter_update_poll(bool forced)
_rc.function[4] = _parameters.rc_map_mode_sw - 1;
#if 1
printf("CH0: RAW MAX: %d MIN %d S: %d MID: %d FUNC: %d\n", (int)_parameters.max[0], (int)_parameters.min[0], (int)(_rc.chan[0].scaling_factor*100), (int)(_rc.chan[0].mid*100), (int)_rc.function[0]);
printf("CH1: RAW MAX: %d MIN %d S: %d MID: %d FUNC: %d\n", (int)_parameters.max[1], (int)_parameters.min[1], (int)(_rc.chan[1].scaling_factor*100), (int)(_rc.chan[1].mid*100), (int)_rc.function[1]);
printf("CH0: RAW MAX: %d MIN %d S: %d MID: %d FUNC: %d\n", (int)_parameters.max[0], (int)_parameters.min[0], (int)(_rc.chan[0].scaling_factor*10000), (int)(_rc.chan[0].mid), (int)_rc.function[0]);
printf("CH1: RAW MAX: %d MIN %d S: %d MID: %d FUNC: %d\n", (int)_parameters.max[1], (int)_parameters.min[1], (int)(_rc.chan[1].scaling_factor*10000), (int)(_rc.chan[1].mid), (int)_rc.function[1]);
printf("MAN: %d %d\n", (int)(_rc.chan[0].scaled*100), (int)(_rc.chan[1].scaled*100));
fflush(stdout);
usleep(5000);