![]() |
Larus glider flight sensor system 3.9.2024
Software-In-The-Loop test and validation system
|
3 dimensional magnetic calibration and error compensation mechanism More...
#include <compass_calibrator_3D.h>
Public Types | |
| enum | { AXES =3 , PARAMETERS =11 , OBSERVATIONS =22 } |
Public Member Functions | |
| compass_calibrator_3D (void) | |
| void | start_learning (void) |
| bool | learn (const float3vector &observed_induction, const float3vector &expected_induction, const quaternion< float > &q, bool turning_right, float error_margin) |
| float3vector | calibrate (const float3vector &induction, const quaternion< float > &q) |
| bool | calculate (void) |
| bool | available (void) const |
3 dimensional magnetic calibration and error compensation mechanism
Definition at line 34 of file compass_calibrator_3D.h.
| anonymous enum |
| Enumerator | |
|---|---|
| AXES | |
| PARAMETERS | |
| OBSERVATIONS | |
Definition at line 37 of file compass_calibrator_3D.h.
|
inline |
Definition at line 39 of file compass_calibrator_3D.h.
References start_learning().
Definition at line 54 of file compass_calibrator_3D.h.
Referenced by AHRS_type::update_ACC_only(), and AHRS_type::update_compass().
Definition at line 75 of file compass_calibrator_3D.cpp.
References assert, AXES, OBSERVATIONS, PARAMETERS, and start_learning().
| float3vector compass_calibrator_3D::calibrate | ( | const float3vector & | induction, |
| const quaternion< float > & | q | ||
| ) |
Definition at line 162 of file compass_calibrator_3D.cpp.
Referenced by AHRS_type::update_ACC_only(), and AHRS_type::update_compass().
| bool compass_calibrator_3D::learn | ( | const float3vector & | observed_induction, |
| const float3vector & | expected_induction, | ||
| const quaternion< float > & | q, | ||
| bool | turning_right, | ||
| float | error_margin | ||
| ) |
Definition at line 38 of file compass_calibrator_3D.cpp.
References AXES, M_PI_F, OBSERVATIONS, RECIP_SECTOR_SIZE, and TWO.
Definition at line 45 of file compass_calibrator_3D.h.
References OBSERVATIONS.
Referenced by calculate(), and compass_calibrator_3D().