forked from Archive/PX4-Autopilot
fixed range of debug printing
This commit is contained in:
parent
a1963805e7
commit
68ac20cc3a
|
@ -847,8 +847,8 @@ Sensors::parameter_update_poll(bool forced)
|
||||||
_rc.function[4] = _parameters.rc_map_mode_sw - 1;
|
_rc.function[4] = _parameters.rc_map_mode_sw - 1;
|
||||||
|
|
||||||
#if 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("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*100), (int)(_rc.chan[1].mid*100), (int)_rc.function[1]);
|
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));
|
printf("MAN: %d %d\n", (int)(_rc.chan[0].scaled*100), (int)(_rc.chan[1].scaled*100));
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
usleep(5000);
|
usleep(5000);
|
||||||
|
|
Loading…
Reference in New Issue