From 14cc9ef57c55c3265651859a957a0290579bf156 Mon Sep 17 00:00:00 2001 From: Stacey Sheldon Date: Mon, 16 Apr 2012 14:33:28 -0400 Subject: [PATCH] ppm: adjust min frame pulse width for 8ch x 18ms frames All channels at max when using the FrSKY 4ch D4FR in PPM mode results in the frame pulse shrinking well below our threshold of 3800us and we lose frame. With all 8 channels at max, the frame pulse becomes indistinguishable from the other channels. Using all 8 channels with the FrSKY in PPM mode is NOT recommended even after this change. Recommend using at most 7 active channels in this mode so we can still find the frame pulse. --- flight/PiOS/STM32F10x/pios_ppm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flight/PiOS/STM32F10x/pios_ppm.c b/flight/PiOS/STM32F10x/pios_ppm.c index aea1016d3..64d1196f9 100644 --- a/flight/PiOS/STM32F10x/pios_ppm.c +++ b/flight/PiOS/STM32F10x/pios_ppm.c @@ -44,7 +44,7 @@ const struct pios_rcvr_driver pios_ppm_rcvr_driver = { #define PIOS_PPM_IN_MIN_NUM_CHANNELS 4 #define PIOS_PPM_IN_MAX_NUM_CHANNELS PIOS_PPM_NUM_INPUTS #define PIOS_PPM_STABLE_CHANNEL_COUNT 25 // frames -#define PIOS_PPM_IN_MIN_SYNC_PULSE_US 3800 // microseconds +#define PIOS_PPM_IN_MIN_SYNC_PULSE_US 3000 // microseconds #define PIOS_PPM_IN_MIN_CHANNEL_PULSE_US 750 // microseconds #define PIOS_PPM_IN_MAX_CHANNEL_PULSE_US 2250 // microseconds