1 #ifndef AHRS_CALIBRATION_HPP
2 #define AHRS_CALIBRATION_HPP
9 void calibration_misalignment(Vector3f
& rotationVector
,
10 const Vector3f samples0
[],
11 const Vector3f
& reference0
,
12 const Vector3f samples1
[],
13 const Vector3f
& reference1
,
16 Vector3f
twostep_bias_only(const Vector3f samples
[],
18 const Vector3f
& referenceField
,
21 void twostep_bias_scale(Vector3f
& bias
,
23 const Vector3f samples
[],
24 const size_t n_samples
,
25 const Vector3f
& referenceField
,
28 void twostep_bias_scale(Vector3f
& bias
,
30 const Vector3f samples
[],
31 const size_t n_samples
,
32 const Vector3f
& referenceField
,
35 void openpilot_bias_scale(Vector3f
& bias
,
37 const Vector3f samples
[],
38 const size_t n_samples
,
39 const Vector3f
& referenceField
);
41 void gyroscope_calibration(Vector3f
& bias
,
42 Matrix3f
& accelSensitivity
,
43 Vector3f gyroSamples
[],
44 Vector3f accelSamples
[],
47 #endif // !defined AHRS_CALIBRATION_HPP