30 #if RADIO_CONTROL_NB_CHANNEL < SUPERBITRF_RC_NB_CHANNEL
31 #error "RADIO_CONTROL_NB_CHANNEL mustn't be lower than 14. X-Plus channel expansion is not (yet) usable"
47 for (i = 0; i < count; i++) {
Main include for ABI (AirBorneInterface).
#define RADIO_CONTROL_SUPERBITRF_RC_ID
struct SuperbitRF superbitrf
void cyrf6936_event(struct Cyrf6936 *cyrf)
The on event call for the CYRF6936 chip.
void superbitrf_event(void)
The superbitrf on event call.
void superbitrf_init(void)
Initialize the superbitrf.
uint8_t num_channels
The number of channels the transmitter has.
struct Cyrf6936 cyrf6936
The cyrf chip used.
bool rc_frame_available
When a RC frame is available.
int16_t rc_values[14]
The rc values from the packet.
struct RadioControl radio_control
Generic interface for radio control modules.
uint8_t time_since_last_frame
pprz_t values[RADIO_CONTROL_NB_CHANNEL]
static void superbitrf_rc_normalize(int16_t *in, int16_t *out, uint8_t count)
normalize superbitrf rc_values to radio values
void superbitrf_rc_init(void)
Initialization.
void superbitrf_rc_event(void)
RC event function.
DSM2 and DSMX radio control implementation for the cyrf6936 2.4GHz radio chip trough SPI.
#define SUPERBITRF_RC_NB_CHANNEL
short int16_t
Typedef defining 16 bit short type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.