AP_NavEKF: constify getLastYawResetAngle

This commit is contained in:
Randy Mackay 2015-10-29 17:31:55 +09:00
parent 7c20577ee0
commit 758c5a7d7f
2 changed files with 2 additions and 2 deletions

View File

@ -5584,7 +5584,7 @@ void NavEKF::alignMagStateDeclination()
// return the amount of yaw angle change due to the last yaw angle reset in radians
// returns the time of the last yaw angle reset or 0 if no reset has ever occurred
uint32_t NavEKF::getLastYawResetAngle(float &yawAng)
uint32_t NavEKF::getLastYawResetAngle(float &yawAng) const
{
yawAng = yawResetAngle;
return lastYawReset_ms;

View File

@ -278,7 +278,7 @@ public:
// return the amount of yaw angle change due to the last yaw angle reset in radians
// returns the time of the last yaw angle reset or 0 if no reset has ever occurred
uint32_t getLastYawResetAngle(float &yawAng);
uint32_t getLastYawResetAngle(float &yawAng) const;
// return the amount of NE position change due to the last position reset in metres
// returns the time of the last reset or 0 if no reset has ever occurred