35 #include "generated/airframe.h"
37 #define TRAJ_MAX_BANK (int32_t)ANGLE_BFP_OF_REAL(GUIDANCE_H_MAX_BANK)
49 cmd[COMMAND_ROLL] = sp_euler.
phi * angle2cmd;
50 cmd[COMMAND_PITCH] = sp_euler.
theta * angle2cmd;
59 BoundAbs(cmd[COMMAND_ROLL],
MAX_PPRZ);
60 BoundAbs(cmd[COMMAND_PITCH],
MAX_PPRZ);
61 BoundAbs(cmd[COMMAND_YAW],
MAX_PPRZ);
62 BoundAbs(cmd[COMMAND_THRUST],
MAX_PPRZ);
int32_t phi
in rad with INT32_ANGLE_FRAC
int32_t psi
in rad with INT32_ANGLE_FRAC
int32_t theta
in rad with INT32_ANGLE_FRAC
#define INT32_ANGLE_NORMALIZE(_a)
static struct Int32Eulers * stateGetNedToBodyEulers_i(void)
Get vehicle body attitude euler angles (int).
struct Int32Eulers stab_sp_to_eulers_i(struct StabilizationSetpoint *sp)
int32_t th_sp_to_thrust_i(struct ThrustSetpoint *th, int32_t thrust, uint8_t axis)
General stabilization interface for rotorcrafts.
void stabilization_attitude_run(bool in_flight, struct StabilizationSetpoint *sp, struct ThrustSetpoint *thrust, int32_t *cmd)
Attitude control run function.
void stabilization_attitude_enter(void)
Attitude control enter function.
API to get/set the generic vehicle states.
Thrust setpoint // TODO to a setpoint header Structure to store the desired thrust vector with differ...
int int32_t
Typedef defining 32 bit int type.