37 #include "stabilization/stabilization_attitude.h"
39 #ifndef STOP_ROLL_CMD_ANGLE
40 #define STOP_ROLL_CMD_ANGLE 25.0
42 #ifndef FIRST_THRUST_DURATION
43 #define FIRST_THRUST_DURATION 0.3
45 #ifndef FINAL_THRUST_LEVEL
46 #define FINAL_THRUST_LEVEL 6000
void guidance_flip_enter(void)
Open Loop guidance for making a flip.
int32_t stabilization_attitude_get_heading_i(void)
Read an attitude setpoint from the RC.
#define FIRST_THRUST_DURATION
void stabilization_attitude_run(bool in_flight)
bool autopilot_set_mode(uint8_t new_autopilot_mode)
set autopilot mode
#define STOP_ROLL_CMD_ANGLE
struct FloatEulers stab_att_sp_euler
with INT32_ANGLE_FRAC
#define BFP_OF_REAL(_vr, _frac)
uint8_t autopilot_mode_old
bool autopilot_in_flight(void)
get in_flight flag
uint8_t autopilot_mode_auto2
void stabilization_attitude_set_earth_cmd_i(struct Int32Vect2 *cmd, int32_t heading)
#define FINAL_THRUST_LEVEL
#define ANGLE_BFP_OF_REAL(_af)
Core autopilot interface common to all firmwares.
int32_t phi
in rad with INT32_ANGLE_FRAC
void guidance_flip_run(void)
int32_t stabilization_cmd[COMMANDS_NB]
Stabilization commands.
struct Int32Vect2 flip_cmd_earth
Horizontal guidance for rotorcrafts.
static struct Int32Eulers * stateGetNedToBodyEulers_i(void)
Get vehicle body attitude euler angles (int).
uint8_t autopilot_get_mode(void)
get autopilot mode