Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
radio_control.h File Reference
#include "led.h"
#include "generated/airframe.h"
#include "paparazzi.h"
+ Include dependency graph for radio_control.h:

Go to the source code of this file.

Data Structures

struct  RadioControl


#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...


void radio_control_impl_init (void)
 Main Radio initialization. More...
void radio_control_init (void)
void radio_control_periodic_task (void)


struct RadioControl radio_control

Data Structure Documentation

◆ RadioControl

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

Macro Definition Documentation

◆ RadioControlValues

#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.


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

Definition at line 46 of file radio_control.h.


#define RC_OK   0

Definition at line 56 of file radio_control.h.


#define RC_OK_CPT   15

Definition at line 53 of file radio_control.h.


#define RC_REALLY_LOST   2

Definition at line 58 of file radio_control.h.


#define RC_REALLY_LOST_TIME   60 /* ~1s */

Definition at line 49 of file radio_control.h.

◆ RCValue

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

Definition at line 61 of file radio_control.h.

Function Documentation

◆ radio_control_impl_init()

◆ radio_control_init()

void radio_control_init ( void  )

◆ radio_control_periodic_task()

Variable Documentation

◆ radio_control