mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
Adjust PPM input timing to deal with FrSky's fairly sloppy CPPM implementation
This commit is contained in:
@@ -314,9 +314,9 @@ static void hrt_call_invoke(void);
|
|||||||
* PPM decoder tuning parameters
|
* PPM decoder tuning parameters
|
||||||
*/
|
*/
|
||||||
# define PPM_MAX_PULSE_WIDTH 500 /* maximum width of a pulse */
|
# define PPM_MAX_PULSE_WIDTH 500 /* maximum width of a pulse */
|
||||||
# define PPM_MIN_CHANNEL_VALUE 750 /* shortest valid channel signal */
|
# define PPM_MIN_CHANNEL_VALUE 800 /* shortest valid channel signal */
|
||||||
# define PPM_MAX_CHANNEL_VALUE 2400 /* longest valid channel signal */
|
# define PPM_MAX_CHANNEL_VALUE 2200 /* longest valid channel signal */
|
||||||
# define PPM_MIN_START 5000 /* shortest valid start gap */
|
# define PPM_MIN_START 2500 /* shortest valid start gap */
|
||||||
|
|
||||||
/* decoded PPM buffer */
|
/* decoded PPM buffer */
|
||||||
#define PPM_MAX_CHANNELS 12
|
#define PPM_MAX_CHANNELS 12
|
||||||
|
|||||||
@@ -96,9 +96,9 @@
|
|||||||
* values are advertised to clients.
|
* values are advertised to clients.
|
||||||
*/
|
*/
|
||||||
#define PPM_MAX_PULSE_WIDTH 500 /* maximum width of a pulse */
|
#define PPM_MAX_PULSE_WIDTH 500 /* maximum width of a pulse */
|
||||||
#define PPM_MIN_CHANNEL_VALUE 750 /* shortest valid channel signal */
|
#define PPM_MIN_CHANNEL_VALUE 800 /* shortest valid channel signal */
|
||||||
#define PPM_MAX_CHANNEL_VALUE 2400 /* longest valid channel signal */
|
#define PPM_MAX_CHANNEL_VALUE 2200 /* longest valid channel signal */
|
||||||
#define PPM_MIN_START 5000 /* shortest valid start gap */
|
#define PPM_MIN_START 2500 /* shortest valid start gap */
|
||||||
|
|
||||||
/* Input timeout - after this interval we assume signal is lost */
|
/* Input timeout - after this interval we assume signal is lost */
|
||||||
#define PPM_INPUT_TIMEOUT 100 * 1000 /* 100ms */
|
#define PPM_INPUT_TIMEOUT 100 * 1000 /* 100ms */
|
||||||
|
|||||||
Reference in New Issue
Block a user