DUNE: Uniform Navigational Environment
2019.02.1
|
CompassCalibration is responsible to gather data from compass in order to compute hard-iron calibration parameters.
Public Member Functions | |
CompassCalibration (void) | |
void | clear (void) |
void | updateDCM (const IMC::EulerAngles &msg) |
void | updateField (const IMC::MagneticField &msg) |
Math::Matrix | getCalibrationParams (void) |
|
inline |
Constructor.
References clear().
|
inline |
Clear calibration.
References DUNE::Math::Matrix::resizeAndFill().
Referenced by CompassCalibration(), Maneuver::CompassCalibration::Task::consume(), getCalibrationParams(), Maneuver::CompassCalibration::Task::onUpdateParameters(), and Maneuver::CompassCalibration::Task::yoyoMotion().
|
inline |
Get calibration parameters.
References clear().
Referenced by Maneuver::CompassCalibration::Task::calibrate().
|
inline |
Update Direct Cosine Matrix.
[in] | msg | euler angles message. |
References DUNE::IMC::EulerAngles::phi, and DUNE::IMC::EulerAngles::theta.
Referenced by Maneuver::CompassCalibration::Task::consume().
|
inline |
Get stabilized magnetic field.
[in] | msg | magnetic field message. |
References DUNE::Math::Matrix::toDCM(), DUNE::IMC::MagneticField::x, DUNE::IMC::MagneticField::y, and DUNE::IMC::MagneticField::z.
Referenced by Maneuver::CompassCalibration::Task::consume().