aboutsummaryrefslogtreecommitdiff
path: root/nuttx/configs/px4fmu/src/up_hrt.c
diff options
context:
space:
mode:
authorpx4dev <px4@purgatory.org>2012-08-27 21:19:27 -0700
committerpx4dev <px4@purgatory.org>2012-08-27 21:19:27 -0700
commit0bc9cfd0f95ba0fc2d415e8136bb0110558872eb (patch)
tree44dd5dc4964549b7e8fff507408bfa15ae4fc7ad /nuttx/configs/px4fmu/src/up_hrt.c
parente6f6a81d5bc6403e5207a7bf1f3c6a1eba6c7fe3 (diff)
downloadpx4-firmware-0bc9cfd0f95ba0fc2d415e8136bb0110558872eb.tar.gz
px4-firmware-0bc9cfd0f95ba0fc2d415e8136bb0110558872eb.tar.bz2
px4-firmware-0bc9cfd0f95ba0fc2d415e8136bb0110558872eb.zip
Adjust PPM input timing to deal with FrSky's fairly sloppy CPPM implementation
Diffstat (limited to 'nuttx/configs/px4fmu/src/up_hrt.c')
-rw-r--r--nuttx/configs/px4fmu/src/up_hrt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/configs/px4fmu/src/up_hrt.c b/nuttx/configs/px4fmu/src/up_hrt.c
index 3792d0d21..c8ff1ce38 100644
--- a/nuttx/configs/px4fmu/src/up_hrt.c
+++ b/nuttx/configs/px4fmu/src/up_hrt.c
@@ -314,9 +314,9 @@ static void hrt_call_invoke(void);
* PPM decoder tuning parameters
*/
# define PPM_MAX_PULSE_WIDTH 500 /* maximum width of a pulse */
-# define PPM_MIN_CHANNEL_VALUE 750 /* shortest valid channel signal */
-# define PPM_MAX_CHANNEL_VALUE 2400 /* longest valid channel signal */
-# define PPM_MIN_START 5000 /* shortest valid start gap */
+# define PPM_MIN_CHANNEL_VALUE 800 /* shortest valid channel signal */
+# define PPM_MAX_CHANNEL_VALUE 2200 /* longest valid channel signal */
+# define PPM_MIN_START 2500 /* shortest valid start gap */
/* decoded PPM buffer */
#define PPM_MAX_CHANNELS 12