LP-311 Remove basic/advanced stabilization tab auto-switch (autotune/txpid lock issues)
[librepilot.git] / ground / gcs / src / plugins / config / calibration.h
blob47805d105ac76384c285c20d5f59722fafd1786c
1 #ifndef AHRS_CALIBRATION_HPP
2 #define AHRS_CALIBRATION_HPP
4 #include <Eigen/Core>
5 #include <cstdlib>
6 using std::size_t;
7 using namespace Eigen;
9 void calibration_misalignment(Vector3f & rotationVector,
10 const Vector3f samples0[],
11 const Vector3f & reference0,
12 const Vector3f samples1[],
13 const Vector3f & reference1,
14 size_t n_samples);
16 Vector3f twostep_bias_only(const Vector3f samples[],
17 size_t n_samples,
18 const Vector3f & referenceField,
19 const float noise);
21 void twostep_bias_scale(Vector3f & bias,
22 Vector3f & scale,
23 const Vector3f samples[],
24 const size_t n_samples,
25 const Vector3f & referenceField,
26 const float noise);
28 void twostep_bias_scale(Vector3f & bias,
29 Matrix3f & scale,
30 const Vector3f samples[],
31 const size_t n_samples,
32 const Vector3f & referenceField,
33 const float noise);
35 void openpilot_bias_scale(Vector3f & bias,
36 Vector3f & scale,
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[],
45 size_t n_samples);
47 #endif // !defined AHRS_CALIBRATION_HPP