Paparazzi UAS  v5.12_stable-4-g9b43e9b
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
ppm_arch.h File Reference

PPM interface between ChibiOS and Paparazzi. More...

#include <BOARD_CONFIG>
+ Include dependency graph for ppm_arch.h:

Go to the source code of this file.

Macros

#define RC_PPM_TICKS_OF_USEC(_v)   ((_v)*RC_PPM_TICKS_PER_USEC)
 
#define RC_PPM_SIGNED_TICKS_OF_USEC(_v)   (int32_t)((_v)*RC_PPM_TICKS_PER_USEC)
 
#define USEC_OF_RC_PPM_TICKS(_v)   ((_v)/RC_PPM_TICKS_PER_USEC)
 
#define PPM_NB_CHANNEL   RADIO_CONTROL_NB_CHANNEL
 

Detailed Description

PPM interface between ChibiOS and Paparazzi.

Input capture configuration has to be defined in the board.h

Definition in file ppm_arch.h.

Macro Definition Documentation

#define PPM_NB_CHANNEL   RADIO_CONTROL_NB_CHANNEL

Definition at line 48 of file ppm_arch.h.

#define RC_PPM_SIGNED_TICKS_OF_USEC (   _v)    (int32_t)((_v)*RC_PPM_TICKS_PER_USEC)

Definition at line 45 of file ppm_arch.h.

#define RC_PPM_TICKS_OF_USEC (   _v)    ((_v)*RC_PPM_TICKS_PER_USEC)

Definition at line 44 of file ppm_arch.h.

Referenced by ppm_decode_frame_width().

#define USEC_OF_RC_PPM_TICKS (   _v)    ((_v)/RC_PPM_TICKS_PER_USEC)

Definition at line 46 of file ppm_arch.h.

Referenced by decode_hott_buffer(), decode_sbus_buffer(), and send_ppm().