30#include "generated/modules.h"
50 Gmat[0][0] = (cphi * spsi - sphi * cpsi * stheta) * T;
51 Gmat[1][0] = (-sphi * spsi * stheta - cpsi * cphi) * T;
52 Gmat[2][0] = -ctheta * sphi * T;
53 Gmat[0][1] = (cphi * cpsi * ctheta) * T;
54 Gmat[1][1] = (cphi * spsi * ctheta) * T;
55 Gmat[2][1] = -stheta * cphi * T;
56 Gmat[0][2] = sphi * spsi + cphi * cpsi * stheta;
57 Gmat[1][2] = cphi * spsi * stheta - cpsi * sphi;
58 Gmat[2][2] = cphi * ctheta;
77 Gmat[0][0] = ctheta * cphi * T;
79 Gmat[2][0] = -stheta * cphi * T;
80 Gmat[0][1] = -stheta * sphi * T;
81 Gmat[1][1] = -cphi * T;
82 Gmat[2][1] = -ctheta * sphi * T;
83 Gmat[0][2] = stheta * cphi;
85 Gmat[2][2] = ctheta * cphi;
93#ifdef GUIDANCE_INDI_CALC_G_ZYX
Core autopilot interface common to all firmwares.
static float Gmat[GUIDANCE_INDI_NV][GUIDANCE_INDI_NU]
A guidance mode based on Incremental Nonlinear Dynamic Inversion.
void guidance_indi_calcG(float Gmat[3][3], struct FloatEulers att)
Compute effectiveness matrix for guidance.
static void guidance_indi_calcG_yxz(float Gmat[3][3], struct FloatEulers euler_yxz)
static UNUSED void guidance_indi_calcG_zyx(float Gmat[3][3], struct FloatEulers euler_zyx)
Simple first order low pass filter with bilinear transform.
API to get/set the generic vehicle states.