Paparazzi UAS
v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
|
DSM2 and DSMX radio control implementation for the cyrf6936 2.4GHz radio chip trough SPI. More...
Go to the source code of this file.
Functions | |
void | radio_control_impl_init (void) |
Initialization. More... | |
static void | superbitrf_rc_normalize (int16_t *in, int16_t *out, uint8_t count) |
normalize superbitrf rc_values to radio values More... | |
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.c.
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 58 of file superbitrf_rc.c.
References SuperbitRF::cyrf6936, cyrf6936_event(), RadioControl::frame_cpt, SuperbitRF::num_channels, ppm_frame_available, ppm_pulses, radio_control, 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 radio_control_impl_init | ( | void | ) |
Initialization.
Definition at line 37 of file superbitrf_rc.c.
References rc_spk_parser_idx, rc_spk_parser_status, RC_SPK_STA_UNINIT, and superbitrf_init().
normalize superbitrf rc_values to radio values
Definition at line 44 of file superbitrf_rc.c.
References MAX_PPRZ, MIN_PPRZ, and RADIO_THROTTLE.
Referenced by radio_control_impl_event().