Paparazzi UAS
v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
Radio control input via intermcu. More...
#include "modules/radio_control/rc_intermcu.h"
#include "modules/radio_control/radio_control.h"
#include "pprzlink/intermcu_msg.h"
#include "modules/core/abi.h"
Go to the source code of this file.
Data Structures | |
struct | _rc_intermcu |
Functions | |
void | rc_intermcu_init (void) |
RC init function. More... | |
void | rc_intermcu_parse_msg (uint8_t *buf) |
Decode intermcu message to get rc values and FBW status for RC status and frame rate TODO make a single message. More... | |
void | rc_intermcu_parse_fbw_status (uint8_t *buf) |
Variables | |
static struct _rc_intermcu | rc_intermcu |
Radio control input via intermcu.
Definition in file rc_intermcu.c.
struct _rc_intermcu |
Definition at line 32 of file rc_intermcu.c.
Data Fields | ||
---|---|---|
uint8_t | frame_rate | |
uint8_t | status | |
uint16_t | values[RC_IMCU_NB_CHANNEL] |
void rc_intermcu_init | ( | void | ) |
RC init function.
Definition at line 40 of file rc_intermcu.c.
References _rc_intermcu::frame_rate, RadioControl::nb_channel, radio_control, RC_IMCU_NB_CHANNEL, rc_intermcu, RC_REALLY_LOST, _rc_intermcu::status, and _rc_intermcu::values.
void rc_intermcu_parse_fbw_status | ( | uint8_t * | buf | ) |
Definition at line 67 of file rc_intermcu.c.
References _rc_intermcu::frame_rate, radio_control, RADIO_CONTROL_INTERMCU_ID, rc_intermcu, and _rc_intermcu::status.
void rc_intermcu_parse_msg | ( | uint8_t * | buf | ) |
Decode intermcu message to get rc values and FBW status for RC status and frame rate TODO make a single message.
Definition at line 51 of file rc_intermcu.c.
References RadioControl::frame_cpt, radio_control, RADIO_CONTROL_INTERMCU_ID, RadioControl::radio_ok_cpt, rc_intermcu, RC_OK, RadioControl::status, RadioControl::time_since_last_frame, RadioControl::values, and _rc_intermcu::values.
|
static |
Definition at line 1 of file rc_intermcu.c.
Referenced by rc_intermcu_init(), rc_intermcu_parse_fbw_status(), and rc_intermcu_parse_msg().