28 #ifndef RADIO_CONTROL_H
29 #define RADIO_CONTROL_H
31 #include "generated/airframe.h"
36 #define RC_AVG_PERIOD 8
39 #define RC_LOST_TIME 30
41 #ifndef RC_REALLY_LOST_TIME
42 #define RC_REALLY_LOST_TIME 60
51 #define RC_REALLY_LOST 2
55 #ifndef RADIO_CONTROL_NB_CHANNEL
56 #define RADIO_CONTROL_NB_CHANNEL 32
73 #define RadioControlValues(_chan) radio_control.values[_chan]
76 #define RadioControlIsLost() (radio_control.status == RC_REALLY_LOST)
uint8_t time_since_last_frame
#define RADIO_CONTROL_NB_CHANNEL
void radio_control_periodic_task(void)
pprz_t values[RADIO_CONTROL_NB_CHANNEL]
struct RadioControl radio_control
static pprz_t radio_control_get(uint8_t idx)
Get a radio control channel value.
static void radio_control_set(uint8_t idx, pprz_t value)
Set a radio control channel value.
void radio_control_init(void)
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.