aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTickTock- <TjckTock@gmail.com>2014-05-09 15:17:38 -0700
committerTickTock- <TjckTock@gmail.com>2014-05-09 15:17:38 -0700
commit559c62b6bc4923854e106be5987db92197e0bae1 (patch)
treed872d30bed468a8492cace2e1067f3d3214e02c6 /src
parentfc4c4c0bd1654c2bee929c8cebb90d6bf2352d13 (diff)
downloadpx4-firmware-559c62b6bc4923854e106be5987db92197e0bae1.tar.gz
px4-firmware-559c62b6bc4923854e106be5987db92197e0bae1.tar.bz2
px4-firmware-559c62b6bc4923854e106be5987db92197e0bae1.zip
Changed low threshold in px4io firmware to 10% to ensure compatibility with user configured single channel, mode switches
Diffstat (limited to 'src')
-rw-r--r--src/modules/px4iofirmware/controls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/px4iofirmware/controls.c b/src/modules/px4iofirmware/controls.c
index 56c5aa005..a8c560d40 100644
--- a/src/modules/px4iofirmware/controls.c
+++ b/src/modules/px4iofirmware/controls.c
@@ -47,8 +47,8 @@
#include "px4io.h"
#define RC_FAILSAFE_TIMEOUT 2000000 /**< two seconds failsafe timeout */
-#define RC_CHANNEL_HIGH_THRESH 5000
-#define RC_CHANNEL_LOW_THRESH -5000
+#define RC_CHANNEL_HIGH_THRESH 5000 /* 75% threshold */
+#define RC_CHANNEL_LOW_THRESH -8000 /* 10% threshold */
static bool ppm_input(uint16_t *values, uint16_t *num_values, uint16_t *frame_len);