diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2012-08-28 22:50:47 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2012-08-28 22:50:47 +0200 |
commit | 68ac20cc3a5c09379023b750ac6ddbe8bde8bbf1 (patch) | |
tree | 07b51e06361b0682206e32a131014c4c1de51e79 | |
parent | a1963805e70f775946abb79501e9dbea68755ee6 (diff) | |
download | px4-firmware-68ac20cc3a5c09379023b750ac6ddbe8bde8bbf1.tar.gz px4-firmware-68ac20cc3a5c09379023b750ac6ddbe8bde8bbf1.tar.bz2 px4-firmware-68ac20cc3a5c09379023b750ac6ddbe8bde8bbf1.zip |
fixed range of debug printing
-rw-r--r-- | apps/sensors/sensors.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/sensors/sensors.cpp b/apps/sensors/sensors.cpp index 2545fc76a..4ecd40671 100644 --- a/apps/sensors/sensors.cpp +++ b/apps/sensors/sensors.cpp @@ -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); |