Paparazzi UAS
v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
Radio control input via intermcu. More...
#include "std.h"
Go to the source code of this file.
Macros | |
#define | RADIO_THROTTLE 0 |
#define | RADIO_ROLL 1 |
#define | RADIO_PITCH 2 |
#define | RADIO_YAW 3 |
#define | RADIO_MODE 4 |
#define | RADIO_KILL_SWITCH 5 |
#define | RADIO_AUX1 5 |
#define | RADIO_AUX2 6 |
#define | RADIO_AUX3 7 |
#define | RC_IMCU_NB_CHANNEL 8 |
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) |
Radio control input via intermcu.
Definition in file rc_intermcu.h.
#define RADIO_AUX1 5 |
Definition at line 41 of file rc_intermcu.h.
#define RADIO_AUX2 6 |
Definition at line 42 of file rc_intermcu.h.
#define RADIO_AUX3 7 |
Definition at line 43 of file rc_intermcu.h.
#define RADIO_KILL_SWITCH 5 |
Definition at line 40 of file rc_intermcu.h.
#define RADIO_MODE 4 |
Definition at line 39 of file rc_intermcu.h.
#define RADIO_PITCH 2 |
Definition at line 37 of file rc_intermcu.h.
#define RADIO_ROLL 1 |
Definition at line 36 of file rc_intermcu.h.
#define RADIO_THROTTLE 0 |
Definition at line 35 of file rc_intermcu.h.
#define RADIO_YAW 3 |
Definition at line 38 of file rc_intermcu.h.
#define RC_IMCU_NB_CHANNEL 8 |
Definition at line 45 of file rc_intermcu.h.
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.