37 #include "generated/airframe.h"
39 #define TRAJ_MAX_BANK (int32_t)ANGLE_BFP_OF_REAL(GUIDANCE_H_MAX_BANK)
int32_t psi
in rad with INT32_ANGLE_FRAC
void stabilization_attitude_set_failsafe_setpoint(void)
void stabilization_attitude_enter(void)
General attitude stabilization interface for rotorcrafts.
int32_t theta
in rad with INT32_ANGLE_FRAC
void stabilization_attitude_init(void)
struct Int32Eulers stab_att_sp_euler
with INT32_ANGLE_FRAC
Read an attitude setpoint from the RC.
void stabilization_attitude_set_earth_cmd_i(struct Int32Vect2 *cmd, int32_t heading)
void stabilization_attitude_read_rc_setpoint_eulers(struct Int32Eulers *sp, bool_t in_flight, bool_t in_carefree, bool_t coordinated_turn)
Read attitude setpoint from RC as euler angles.
#define PPRZ_ITRIG_SIN(_s, _a)
#define INT32_ANGLE_NORMALIZE(_a)
void stabilization_attitude_run(bool_t in_flight)
int32_t phi
in rad with INT32_ANGLE_FRAC
#define INT_EULERS_ZERO(_e)
API to get/set the generic vehicle states.
General stabilization interface for rotorcrafts.
void stabilization_attitude_set_rpy_setpoint_i(struct Int32Eulers *rpy)
int32_t stabilization_cmd[COMMANDS_NB]
Stabilization commands.
static struct Int32Eulers * stateGetNedToBodyEulers_i(void)
Get vehicle body attitude euler angles (int).
void stabilization_attitude_read_rc(bool_t in_flight, bool_t in_carefree, bool_t coordinated_turn)
#define PPRZ_ITRIG_COS(_c, _a)