Paparazzi UAS  v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
radio_control.h File Reference
#include "led.h"
#include "generated/airframe.h"
#include "paparazzi.h"
#include <RADIO_CONTROL_TYPE_H>
+ Include dependency graph for radio_control.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  RadioControl
 

Macros

#define RC_AVG_PERIOD   8 /* TODO remove if IIR filter is used */
 
#define RC_LOST_TIME   30 /* 500ms with a 60Hz timer */
 
#define RC_REALLY_LOST_TIME   60 /* ~1s */
 
#define RC_OK_CPT   15
 
#define RC_OK   0
 
#define RC_LOST   1
 
#define RC_REALLY_LOST   2
 

Functions

void radio_control_impl_init (void)
 Initialization. More...
 
void radio_control_init (void)
 
void radio_control_periodic_task (void)
 

Variables

struct RadioControl radio_control
 

Data Structure Documentation

struct RadioControl

Definition at line 52 of file radio_control.h.

Data Fields
uint8_t frame_cpt
uint8_t frame_rate
uint8_t radio_ok_cpt
uint8_t status
uint8_t time_since_last_frame
pprz_t values[RADIO_CONTROL_NB_CHANNEL]

Macro Definition Documentation

#define RC_AVG_PERIOD   8 /* TODO remove if IIR filter is used */

Definition at line 42 of file radio_control.h.

#define RC_LOST   1

Definition at line 49 of file radio_control.h.

Referenced by radio_control_periodic_task().

#define RC_LOST_TIME   30 /* 500ms with a 60Hz timer */

Definition at line 43 of file radio_control.h.

Referenced by radio_control_periodic_task().

#define RC_OK_CPT   15

Definition at line 46 of file radio_control.h.

Referenced by radio_control_periodic_task().

#define RC_REALLY_LOST   2
#define RC_REALLY_LOST_TIME   60 /* ~1s */

Definition at line 44 of file radio_control.h.

Referenced by radio_control_init(), and radio_control_periodic_task().

Function Documentation

void radio_control_init ( void  )

Variable Documentation