aboutsummaryrefslogtreecommitdiff
path: root/src/modules/px4iofirmware
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2013-05-16 10:48:57 +0200
committerLorenz Meier <lm@inf.ethz.ch>2013-05-21 09:14:22 +0200
commit88ba97816ddffdfeae6f8d29e984759136eef9b3 (patch)
tree2c61f22716a3c6f7e80ff6c545ce7b3997faf962 /src/modules/px4iofirmware
parent0165034e496d0652f9dbb7d122d808cd6b483e60 (diff)
downloadpx4-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.c8
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++;
}