From fabd216ca597c398e40eac85001967729c36987d Mon Sep 17 00:00:00 2001 From: Paul Riseborough Date: Wed, 13 Mar 2019 08:08:42 +1100 Subject: [PATCH] EKF: Documentation edits --- EKF/ekf.h | 2 +- EKF/ekf_helper.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/EKF/ekf.h b/EKF/ekf.h index 1625df6db4..811a1b602a 100644 --- a/EKF/ekf.h +++ b/EKF/ekf.h @@ -550,7 +550,7 @@ private: // It is used to align the yaw angle after launch or takeoff for fixed wing vehicle. bool realignYawGPS(); - // calculate the magnetic declination to be used by the alignment and fusion processing + // Return the magnetic declination in radians to be used by the alignment and fusion processing float getMagDeclination(); // reset position states of the ekf (only horizontal position) diff --git a/EKF/ekf_helper.cpp b/EKF/ekf_helper.cpp index ae40bb531a..f39cd55f57 100644 --- a/EKF/ekf_helper.cpp +++ b/EKF/ekf_helper.cpp @@ -766,7 +766,7 @@ bool Ekf::resetMagHeading(Vector3f &mag_init, bool increase_yaw_var, bool update return true; } -// Calculate the magnetic declination to be used by the alignment and fusion processing +// Return the magnetic declination in radians to be used by the alignment and fusion processing float Ekf::getMagDeclination() { // set source of magnetic declination for internal use