static void send_fbw_status(void) { uint8_t rc_status = 0; uint8_t fbw_status = 0; if (bit_is_set(fbw_state->status, STATUS_MODE_AUTO)) fbw_status = FBW_MODE_AUTO; if (bit_is_set(fbw_state->status, STATUS_MODE_FAILSAFE)) fbw_status = FBW_MODE_FAILSAFE; if (bit_is_set(fbw_state->status, STATUS_RADIO_REALLY_LOST)) rc_status = RC_REALLY_LOST; else if (bit_is_set(fbw_state->status, RC_OK)) rc_status = RC_OK; else rc_status = RC_LOST; DOWNLINK_SEND_FBW_STATUS(DefaultChannel, DefaultDevice, &(rc_status), &(fbw_state->ppm_cpt), &(fbw_status), &(fbw_state->vsupply), &(fbw_state->current)); }
static void send_fbw_status(void) { uint8_t dummy = 0; DOWNLINK_SEND_FBW_STATUS(DefaultChannel, DefaultDevice, &dummy, &dummy, &fbw_mode, &electrical.vsupply, &electrical.current); }
static void send_fbw_status(void) { DOWNLINK_SEND_FBW_STATUS(DefaultChannel, DefaultDevice, &(radio_control.status), &(radio_control.frame_rate), &fbw_mode, &electrical.vsupply, &electrical.current); }