mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-08 19:46:06 +01:00
44e3466e0a
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3053 ebee16cc-31ac-478f-84a7-5cbb03baadba
55 lines
1.1 KiB
C++
55 lines
1.1 KiB
C++
#ifndef AHRS_CALIBRATION_HPP
|
|
#define AHRS_CALIBRATION_HPP
|
|
|
|
#include <Eigen/Core>
|
|
#include <cstdlib>
|
|
using std::size_t;
|
|
using namespace Eigen;
|
|
|
|
void
|
|
calibration_misalignment(Vector3f& rotationVector,
|
|
const Vector3f samples0[],
|
|
const Vector3f& reference0,
|
|
const Vector3f samples1[],
|
|
const Vector3f& reference1,
|
|
size_t n_samples);
|
|
|
|
Vector3f
|
|
twostep_bias_only(const Vector3f samples[],
|
|
size_t n_samples,
|
|
const Vector3f& referenceField,
|
|
const float noise);
|
|
|
|
void
|
|
twostep_bias_scale(Vector3f& bias,
|
|
Vector3f& scale,
|
|
const Vector3f samples[],
|
|
const size_t n_samples,
|
|
const Vector3f& referenceField,
|
|
const float noise);
|
|
|
|
void
|
|
twostep_bias_scale(Vector3f& bias,
|
|
Matrix3f& scale,
|
|
const Vector3f samples[],
|
|
const size_t n_samples,
|
|
const Vector3f& referenceField,
|
|
const float noise);
|
|
|
|
void
|
|
openpilot_bias_scale(Vector3f& bias,
|
|
Vector3f& scale,
|
|
const Vector3f samples[],
|
|
const size_t n_samples,
|
|
const Vector3f& referenceField);
|
|
|
|
void
|
|
gyroscope_calibration(Vector3f& bias,
|
|
Matrix3f& accelSensitivity,
|
|
Vector3f gyroSamples[],
|
|
Vector3f accelSamples[],
|
|
size_t n_samples);
|
|
|
|
#endif // !defined AHRS_CALIBRATION_HPP
|
|
|