Paparazzi UAS  v5.15_devel-61-g9c6bcf9
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:

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
 
#define RCValue(_x)   radio_control.values[_x]
 
#define RadioControlValues(_chan)   radio_control.values[_chan]
 For easy access in command_laws. More...
 

Functions

void radio_control_impl_init (void)
 Main Radio 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 63 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 RadioControlValues (   _chan)    radio_control.values[_chan]

For easy access in command_laws.

Definition at line 74 of file radio_control.h.

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

Definition at line 43 of file radio_control.h.

#define RC_LOST   1

Definition at line 57 of file radio_control.h.

Referenced by radio_control_periodic_task().

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

Definition at line 46 of file radio_control.h.

Referenced by radio_control_periodic_task().

#define RC_OK_CPT   15

Definition at line 53 of file radio_control.h.

Referenced by radio_control_periodic_task().

#define RC_REALLY_LOST_TIME   60 /* ~1s */

Definition at line 49 of file radio_control.h.

Referenced by radio_control_init(), and radio_control_periodic_task().

#define RCValue (   _x)    radio_control.values[_x]

Definition at line 61 of file radio_control.h.

Function Documentation

void radio_control_init ( void  )

Variable Documentation