30 #include "pprzlink/dl_protocol.h"
44 #ifdef RADIO_CONTROL_DATALINK_LED
48 DL_RC_3CH_throttle_mode(buf),
50 DL_RC_3CH_pitch(buf));
55 #ifdef RADIO_CONTROL_DATALINK_LED
59 DL_RC_4CH_throttle(buf),
69 uint8_t throttle = ((throttle_mode & 0xFC) >> 2) * (128 / 64);
Main include for ABI (AirBorneInterface).
#define RADIO_CONTROL_DATALINK_ID
struct RadioControl radio_control
Generic interface for radio control modules.
uint8_t time_since_last_frame
pprz_t values[RADIO_CONTROL_NB_CHANNEL]
void rc_datalink_parse_RC_4CH(uint8_t *buf)
void rc_datalink_init(void)
RC init function.
void parse_rc_3ch_datalink(uint8_t throttle_mode, int8_t roll, int8_t pitch)
Decode datalink message to get rc values with RC_3CH message Mode and throttle are merge in the same ...
int8_t rc_dl_values[RC_DL_NB_CHANNEL]
void rc_datalink_parse_RC_3CH(uint8_t *buf)
void parse_rc_4ch_datalink(uint8_t mode, uint8_t throttle, int8_t roll, int8_t pitch, int8_t yaw)
Decode datalink message to get rc values with RC_4CH message.
volatile bool rc_dl_frame_available
void rc_datalink_event(void)
RC event function.
static void rc_datalink_normalize(int8_t *in, int16_t *out)
Normalize rc_dl_values to radio values.
Radio control input via datalink.
#define RADIO_ROLL
Redefining RADIO_* Do not use with radio.h (ppm rc)
static uint8_t mode
mode holds the current sonar mode mode = 0 used at high altitude, uses 16 wave patterns mode = 1 used...
short int16_t
Typedef defining 16 bit short type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.
signed char int8_t
Typedef defining 8 bit char type.