44 uint8_t throttle = ((throttle_mode & 0xFC) >> 2) * (128 / 64);
84 Bound(out[RADIO_THROTTLE], 0,
MAX_PPRZ);
97 _received_frame_handler();
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 ...
pprz_t values[RADIO_CONTROL_NB_CHANNEL]
int8_t rc_dl_values[RC_DL_NB_CHANNEL]
Radio control input via datalink.
struct RadioControl radio_control
volatile bool rc_dl_frame_available
void radio_control_impl_event(void(*_received_frame_handler)(void))
RC event function with handler callback.
static uint8_t mode
mode holds the current sonar mode mode = 0 used at high altitude, uses 16 wave patterns mode = 1 used...
void radio_control_impl_init(void)
static void rc_datalink_normalize(int8_t *in, int16_t *out)
Normalize rc_dl_values to radio values.
uint8_t time_since_last_frame
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.