38 #define TM_AHRSIMU_H 100
82 #define AHRSIMU_PI 3.141592653f
83 #define AHRSIMU_RAD2DEG(x) ((x) * 57.2957795f)
84 #define AHRSIMU_DEG2RAD(x) ((x) * 0.0174532925f)
106 float _q0, _q1, _q2, _q3;
void TM_AHRSIMU_UpdateAHRS(TM_AHRSIMU_t *AHRSIMU, float gx, float gy, float gz, float ax, float ay, float az, float mx, float my, float mz)
Updates AHRS algorithm with new values and calculates roll, pitch and yaw angles. ...
Main working AHRS IMU structure.
Definition: tm_stm32_ahrs_imu.h:99
void TM_AHRSIMU_Init(TM_AHRSIMU_t *AHRSIMU, float sampleRate, float beta, float inclination)
Initializes ARHS or IMU algorithm for motion calculations.
void TM_AHRSIMU_UpdateIMU(TM_AHRSIMU_t *AHRSIMU, float gx, float gy, float gz, float ax, float ay, float az)
Updates IMU algorithm with new values and calculates roll, pitch and yaw angles.
struct _TM_AHRSIMU_t TM_AHRSIMU_t
Main working AHRS IMU structure.