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
71 Gmat[0][0] =
Tx * (stheta * cphi * spsi) +
Ty * (stheta * cphi * cpsi) +
Tz * (-stheta * sphi);
72 Gmat[1][0] =
Tx * (-sphi * spsi) +
Ty * (-sphi * cpsi) +
Tz * (-cphi);
73 Gmat[2][0] =
Tx * (ctheta * cphi * spsi) +
Ty * (ctheta * cphi * cpsi) +
Tz * (-ctheta * sphi);
76 Gmat[0][1] =
Tx * (-stheta * cpsi + ctheta * sphi * spsi) +
Ty * (stheta * spsi + ctheta * sphi * cpsi) +
Tz * (ctheta * cphi);
78 Gmat[2][1] =
Tx * (-ctheta * cpsi - stheta * sphi * spsi) +
Ty * (ctheta * spsi - stheta * sphi * cpsi) +
Tz * (-stheta * cphi);
86 Gmat[0][3] = ctheta * cpsi - stheta * sphi * spsi;
87 Gmat[1][3] = ctheta * spsi;
88 Gmat[2][3] = -stheta * cpsi + ctheta * sphi * spsi;
91 Gmat[0][4] = -ctheta * spsi + stheta * sphi * cpsi;
92 Gmat[1][4] = cphi * cpsi;
93 Gmat[2][4] = stheta * spsi + ctheta * sphi * cpsi;
96 Gmat[0][5] = stheta * cphi;
98 Gmat[2][5] = ctheta * cphi;
112#if GUIDANCE_INDI_RC_SWITCH_EULER
float guidance_indi_max_bank
static float Gmat[GUIDANCE_INDI_NV][GUIDANCE_INDI_NU]
A guidance mode based on Incremental Nonlinear Dynamic Inversion.
void guidance_indi_set_wls_settings(struct WLS_t *wls, struct FloatEulers *euler_yxz, float heading_sp)
#define GUIDANCE_INDI_MAX_H_THRUST
static void guidance_indi_calcG_yxz(float Gmat[3][6], struct FloatEulers euler_yxz)
#define GUIDANCE_INDI_MAX_V_THRUST
void guidance_indi_calcG(float Gmat[3][6], struct FloatEulers euler)
Compute effectiveness matrix for guidance.
float guidance_indi_max_v_thrust
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.