PX4 Firmware
PX4 Autopilot Software http://px4.io
ppm_decode.h File Reference

PPM input decoder. More...

#include <drivers/drv_hrt.h>
Include dependency graph for ppm_decode.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PPM_MAX_CHANNELS   12
 Maximum number of channels that we will decode. More...
 
#define PPM_MIN   1000
 
#define PPM_MAX   2000
 
#define PPM_MID   ((PPM_MIN + PPM_MAX) / 2)
 

Variables

__BEGIN_DECLS __EXPORT uint16_t ppm_buffer [PPM_MAX_CHANNELS]
 decoded PPM channel values More...
 
__EXPORT uint16_t ppm_frame_length
 length of the decoded PPM frame (includes gap) More...
 
__EXPORT unsigned ppm_decoded_channels
 count of decoded channels More...
 
__EXPORT hrt_abstime ppm_last_valid_decode
 timestamp of the last valid decode More...
 

Detailed Description

PPM input decoder.

Definition in file ppm_decode.h.

Macro Definition Documentation

◆ PPM_MAX

#define PPM_MAX   2000

Definition at line 51 of file ppm_decode.h.

◆ PPM_MAX_CHANNELS

#define PPM_MAX_CHANNELS   12

Maximum number of channels that we will decode.

Definition at line 47 of file ppm_decode.h.

Referenced by ppm_input().

◆ PPM_MID

#define PPM_MID   ((PPM_MIN + PPM_MAX) / 2)

Definition at line 52 of file ppm_decode.h.

◆ PPM_MIN

#define PPM_MIN   1000

Definition at line 50 of file ppm_decode.h.

Variable Documentation

◆ ppm_buffer

__BEGIN_DECLS __EXPORT uint16_t ppm_buffer[PPM_MAX_CHANNELS]

decoded PPM channel values

Referenced by RCInput::cycle(), and ppm_input().

◆ ppm_decoded_channels

__EXPORT unsigned ppm_decoded_channels

count of decoded channels

Referenced by RCInput::cycle(), and ppm_input().

◆ ppm_frame_length

__EXPORT uint16_t ppm_frame_length

length of the decoded PPM frame (includes gap)

Referenced by RCInput::cycle(), and ppm_input().

◆ ppm_last_valid_decode

__EXPORT hrt_abstime ppm_last_valid_decode

timestamp of the last valid decode

Referenced by RCInput::cycle(), and ppm_input().