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 "superbitrf_rc.h"
#include "modules/radio_control/radio_control.h"
#include "modules/core/abi.h"
Go to the source code of this file.
Functions | |
void | superbitrf_rc_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 | 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.c.
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 | ) |
Initialization.
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.
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 superbitrf_rc_event().