From 0bc9cfd0f95ba0fc2d415e8136bb0110558872eb Mon Sep 17 00:00:00 2001 From: px4dev Date: Mon, 27 Aug 2012 21:19:27 -0700 Subject: Adjust PPM input timing to deal with FrSky's fairly sloppy CPPM implementation --- nuttx/configs/px4fmu/src/up_hrt.c | 6 +++--- nuttx/configs/px4io/src/drv_ppm_input.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'nuttx') 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 diff --git a/nuttx/configs/px4io/src/drv_ppm_input.c b/nuttx/configs/px4io/src/drv_ppm_input.c index f25ae41e2..2db0fbf0b 100644 --- a/nuttx/configs/px4io/src/drv_ppm_input.c +++ b/nuttx/configs/px4io/src/drv_ppm_input.c @@ -96,9 +96,9 @@ * values are advertised to clients. */ #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 */ /* Input timeout - after this interval we assume signal is lost */ #define PPM_INPUT_TIMEOUT 100 * 1000 /* 100ms */ -- cgit v1.2.3