Adjust PPM input timing to deal with FrSky's fairly sloppy CPPM implementation

This commit is contained in:
px4dev 2012-08-27 21:19:27 -07:00
parent e6f6a81d5b
commit 0bc9cfd0f9
2 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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 */