Paparazzi UAS
v5.12_stable-4-g9b43e9b
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 "subsystems/datalink/superbitrf.h"
Go to the source code of this file.
Macros | |
#define | RADIO_CONTROL_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 |
#define | RadioControlEvent(_received_frame_handler) radio_control_impl_event(_received_frame_handler) |
Functions | |
void | radio_control_impl_event (void(*_received_frame_handler)(void)) |
RC event function with handler callback. 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 47 of file superbitrf_rc.h.
#define RADIO_AUX2 6 |
Definition at line 48 of file superbitrf_rc.h.
#define RADIO_AUX3 7 |
Definition at line 49 of file superbitrf_rc.h.
#define RADIO_AUX4 8 |
Definition at line 50 of file superbitrf_rc.h.
#define RADIO_AUX5 9 |
Definition at line 51 of file superbitrf_rc.h.
#define RADIO_AUX6 10 |
Definition at line 52 of file superbitrf_rc.h.
#define RADIO_AUX7 11 |
Definition at line 53 of file superbitrf_rc.h.
#define RADIO_AUX8 12 |
Definition at line 54 of file superbitrf_rc.h.
#define RADIO_AUX9 13 |
Definition at line 55 of file superbitrf_rc.h.
#define RADIO_CONTROL_NB_CHANNEL 14 |
Definition at line 33 of file superbitrf_rc.h.
#define RADIO_FLAP 5 |
Definition at line 46 of file superbitrf_rc.h.
#define RADIO_GEAR 4 |
Definition at line 45 of file superbitrf_rc.h.
#define RADIO_MODE RADIO_GEAR |
Definition at line 59 of file superbitrf_rc.h.
#define RADIO_PITCH 2 |
Definition at line 43 of file superbitrf_rc.h.
#define RADIO_ROLL 1 |
Definition at line 42 of file superbitrf_rc.h.
#define RADIO_THROTTLE 0 |
Definition at line 41 of file superbitrf_rc.h.
#define RADIO_YAW 3 |
Definition at line 44 of file superbitrf_rc.h.
#define RadioControlEvent | ( | _received_frame_handler | ) | radio_control_impl_event(_received_frame_handler) |
Definition at line 68 of file superbitrf_rc.h.
void radio_control_impl_event | ( | void(*)(void) | _received_frame_handler | ) |
RC event function with handler callback.
PPM frames are normalized using the IIR filter.
Definition at line 66 of file hott.c.
References SuperbitRF::cyrf6936, cyrf6936_event(), SHott::frame_available, Sbus::frame_available, RadioControl::frame_cpt, hott, hott_decode_event(), SuperbitRF::num_channels, ppm_frame_available, ppm_pulses, SHott::pulses, Sbus::pulses, radio_control, RadioControl::radio_ok_cpt, rc_datalink_normalize(), rc_dl_frame_available, rc_dl_values, SuperbitRF::rc_frame_available, RC_OK, SuperbitRF::rc_values, sbus, sbus2, sbus_decode_event(), sbus_dual_decode_event(), RadioControl::status, superbitrf, superbitrf_event(), superbitrf_rc_normalize(), RadioControl::time_since_last_frame, and RadioControl::values.