26 #ifndef ROTWING_STATE_H
27 #define ROTWING_STATE_H
32 #ifndef ROTWING_SKEW_ANGLE_STEP
33 #define ROTWING_SKEW_ANGLE_STEP 55.0
37 #ifndef ROTWING_QUAD_PREF_PITCH
38 #define ROTWING_QUAD_PREF_PITCH -5.0
52 bool skew_angle_valid : 1;
53 bool hover_motors_enabled : 1;
54 bool hover_motors_idle : 1;
55 bool hover_motors_running : 1;
56 bool pusher_motor_running : 1;
bool rotwing_state_pusher_motor_running(void)
bool rotwing_state_hover_motors_running(void)
enum rotwing_states_t state
float meas_skew_angle_time
void rotwing_state_init(void)
bool rotwing_state_hover_motors_idling(void)
Check if hover motors are idling (COMMAND_THRUST < ROTWING_QUAD_IDLE_MIN_THRUST) for ROTWING_QUAD_IDL...
bool rotwing_state_skew_angle_valid(void)
bool hover_motors_enabled
float ref_model_skew_angle_deg
void rotwing_state_set_transition_wp(uint8_t wp_id)
float meas_skew_angle_deg
bool rotwing_state_choose_circle_direction(uint8_t wp_id)
@ ROTWING_STATE_REQUEST_HOVER
@ ROTWING_STATE_FORCE_HOVER
@ ROTWING_STATE_REQUEST_FW
struct rotwing_state_t rotwing_state
void rotwing_state_periodic(void)
enum rotwing_states_t nav_state
void rotwing_state_update_WP_height(uint8_t wp_id, float height)
void rotwing_state_set(enum rotwing_states_t state)
unsigned short uint16_t
Typedef defining 16 bit unsigned short type.
int int32_t
Typedef defining 32 bit int type.
short int16_t
Typedef defining 16 bit short type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.