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