Paparazzi UAS
v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
DSM2 and DSMX radio control implementation for the cyrf6936 2.4GHz radio chip trough SPI. More...
#include "modules/datalink/superbitrf.h"
Go to the source code of this file.
Macros | |
#define | SUPERBITRF_RC_NB_CHANNEL 14 |
#define | RADIO_THROTTLE 0 |
#define | RADIO_ROLL 1 |
#define | RADIO_PITCH 2 |
#define | RADIO_YAW 3 |
#define | RADIO_GEAR 4 |
#define | RADIO_FLAP 5 |
#define | RADIO_AUX1 5 |
#define | RADIO_AUX2 6 |
#define | RADIO_AUX3 7 |
#define | RADIO_AUX4 8 |
#define | RADIO_AUX5 9 |
#define | RADIO_AUX6 10 |
#define | RADIO_AUX7 11 |
#define | RADIO_AUX8 12 |
#define | RADIO_AUX9 13 |
#define | RADIO_MODE RADIO_GEAR |
Functions | |
void | superbitrf_rc_init (void) |
RC init function. More... | |
void | superbitrf_rc_event (void) |
RC event function. More... | |
DSM2 and DSMX radio control implementation for the cyrf6936 2.4GHz radio chip trough SPI.
Definition in file superbitrf_rc.h.
#define RADIO_AUX1 5 |
Definition at line 54 of file superbitrf_rc.h.
#define RADIO_AUX2 6 |
Definition at line 57 of file superbitrf_rc.h.
#define RADIO_AUX3 7 |
Definition at line 60 of file superbitrf_rc.h.
#define RADIO_AUX4 8 |
Definition at line 63 of file superbitrf_rc.h.
#define RADIO_AUX5 9 |
Definition at line 66 of file superbitrf_rc.h.
#define RADIO_AUX6 10 |
Definition at line 69 of file superbitrf_rc.h.
#define RADIO_AUX7 11 |
Definition at line 72 of file superbitrf_rc.h.
#define RADIO_AUX8 12 |
Definition at line 75 of file superbitrf_rc.h.
#define RADIO_AUX9 13 |
Definition at line 78 of file superbitrf_rc.h.
#define RADIO_FLAP 5 |
Definition at line 51 of file superbitrf_rc.h.
#define RADIO_GEAR 4 |
Definition at line 48 of file superbitrf_rc.h.
#define RADIO_MODE RADIO_GEAR |
Definition at line 83 of file superbitrf_rc.h.
#define RADIO_PITCH 2 |
Definition at line 42 of file superbitrf_rc.h.
#define RADIO_ROLL 1 |
Definition at line 39 of file superbitrf_rc.h.
#define RADIO_THROTTLE 0 |
Definition at line 36 of file superbitrf_rc.h.
#define RADIO_YAW 3 |
Definition at line 45 of file superbitrf_rc.h.
#define SUPERBITRF_RC_NB_CHANNEL 14 |
Definition at line 32 of file superbitrf_rc.h.
void superbitrf_rc_event | ( | void | ) |
RC event function.
Definition at line 58 of file superbitrf_rc.c.
References SuperbitRF::cyrf6936, cyrf6936_event(), RadioControl::frame_cpt, SuperbitRF::num_channels, radio_control, RADIO_CONTROL_SUPERBITRF_RC_ID, RadioControl::radio_ok_cpt, SuperbitRF::rc_frame_available, RC_OK, SuperbitRF::rc_values, RadioControl::status, superbitrf, superbitrf_event(), superbitrf_rc_normalize(), RadioControl::time_since_last_frame, and RadioControl::values.
void superbitrf_rc_init | ( | void | ) |
RC init function.
RC init function.
Definition at line 37 of file superbitrf_rc.c.
References RadioControl::nb_channel, radio_control, superbitrf_init(), and SUPERBITRF_RC_NB_CHANNEL.