diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2013-05-16 10:48:57 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2013-05-21 09:14:22 +0200 |
commit | 88ba97816ddffdfeae6f8d29e984759136eef9b3 (patch) | |
tree | 2c61f22716a3c6f7e80ff6c545ce7b3997faf962 /src/modules/px4iofirmware | |
parent | 0165034e496d0652f9dbb7d122d808cd6b483e60 (diff) | |
download | px4-firmware-88ba97816ddffdfeae6f8d29e984759136eef9b3.tar.gz px4-firmware-88ba97816ddffdfeae6f8d29e984759136eef9b3.tar.bz2 px4-firmware-88ba97816ddffdfeae6f8d29e984759136eef9b3.zip |
Better preflight check, catches wrong RC configs. Needs rework of mavlink text message API to VARARGs
Diffstat (limited to 'src/modules/px4iofirmware')
-rw-r--r-- | src/modules/px4iofirmware/registers.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/modules/px4iofirmware/registers.c b/src/modules/px4iofirmware/registers.c index f21ac6e4c..9698a0f2f 100644 --- a/src/modules/px4iofirmware/registers.c +++ b/src/modules/px4iofirmware/registers.c @@ -412,18 +412,10 @@ registers_set_one(uint8_t page, uint8_t offset, uint16_t value) if (conf[PX4IO_P_RC_CONFIG_CENTER] > conf[PX4IO_P_RC_CONFIG_MAX]) { count++; } - /* assert deadzone is sane */ if (conf[PX4IO_P_RC_CONFIG_DEADZONE] > 500) { count++; } - // The following check isn't needed as constraint checks in controls.c will catch this. - //if (conf[PX4IO_P_RC_CONFIG_MIN] > (conf[PX4IO_P_RC_CONFIG_CENTER] - conf[PX4IO_P_RC_CONFIG_DEADZONE])) { - // count++; - //} - //if (conf[PX4IO_P_RC_CONFIG_MAX] < (conf[PX4IO_P_RC_CONFIG_CENTER] + conf[PX4IO_P_RC_CONFIG_DEADZONE])) { - // count++; - //} if (conf[PX4IO_P_RC_CONFIG_ASSIGNMENT] >= MAX_CONTROL_CHANNELS) { count++; } |