33#include "generated/modules.h"
37#ifndef GUIDANCE_INDI_MAX_H_THRUST
38#define GUIDANCE_INDI_MAX_H_THRUST 2.f
41#ifndef GUIDANCE_INDI_MAX_V_THRUST
42#define GUIDANCE_INDI_MAX_V_THRUST 15.f
73 Gmat[0][0] =
Tx * (stheta * cphi * spsi) +
Ty * (stheta * cphi * cpsi) +
Tz * (-stheta * sphi);
74 Gmat[1][0] =
Tx * (-sphi * spsi) +
Ty * (-sphi * cpsi) +
Tz * (-cphi);
75 Gmat[2][0] =
Tx * (ctheta * cphi * spsi) +
Ty * (ctheta * cphi * cpsi) +
Tz * (-ctheta * sphi);
78 Gmat[0][1] =
Tx * (-stheta * cpsi + ctheta * sphi * spsi) +
Ty * (stheta * spsi + ctheta * sphi * cpsi) +
Tz * (ctheta * cphi);
80 Gmat[2][1] =
Tx * (-ctheta * cpsi - stheta * sphi * spsi) +
Ty * (ctheta * spsi - stheta * sphi * cpsi) +
Tz * (-stheta * cphi);
88 Gmat[0][3] = ctheta * cpsi - stheta * sphi * spsi;
89 Gmat[1][3] = ctheta * spsi;
90 Gmat[2][3] = -stheta * cpsi + ctheta * sphi * spsi;
93 Gmat[0][4] = -ctheta * spsi + stheta * sphi * cpsi;
94 Gmat[1][4] = cphi * cpsi;
95 Gmat[2][4] = stheta * spsi + ctheta * sphi * cpsi;
98 Gmat[0][5] = stheta * cphi;
100 Gmat[2][5] = ctheta * cphi;
106#if GUIDANCE_INDI_RC_SWITCH_EULER
void float_eulers_of_quat_yxz(struct FloatEulers *e, const struct FloatQuat *q)
euler rotation 'YXZ' This function calculates from a quaternion the Euler angles with the order YXZ,...
float guidance_indi_max_bank
static float Gmat[GUIDANCE_INDI_NV][GUIDANCE_INDI_NU]
A guidance mode based on Incremental Nonlinear Dynamic Inversion.
#define GUIDANCE_INDI_MAX_H_THRUST
void guidance_indi_calcG(float Gmat[3][6], const struct FloatQuat *att)
#define GUIDANCE_INDI_MAX_V_THRUST
float guidance_indi_max_v_thrust
void guidance_indi_set_wls_settings(struct WLS_t *wls, const struct FloatQuat *att, const float heading_sp)
float guidance_indi_max_h_thrust
static pprz_t radio_control_get(uint8_t idx)
Get a radio control channel value.
#define RADIO_ROLL
Redefining RADIO_* Do not use with radio.h (ppm rc)
struct FloatVect3 stab_thrust_filt
API to get/set the generic vehicle states.