AP_NavEKF: constify getLastPosNorthEastReset
This commit is contained in:
parent
4e959ef6f9
commit
3f29365cae
@ -5592,7 +5592,7 @@ uint32_t NavEKF::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
|
||||
uint32_t NavEKF::getLastPosNorthEastReset(Vector2f &pos)
|
||||
uint32_t NavEKF::getLastPosNorthEastReset(Vector2f &pos) const
|
||||
{
|
||||
pos = posResetNE;
|
||||
return lastPosReset_ms;
|
||||
@ -5600,7 +5600,7 @@ uint32_t NavEKF::getLastPosNorthEastReset(Vector2f &pos)
|
||||
|
||||
// return the amount of NE velocity change due to the last velocity reset in metres/sec
|
||||
// returns the time of the last reset or 0 if no reset has ever occurred
|
||||
uint32_t NavEKF::getLastVelNorthEastReset(Vector2f &vel)
|
||||
uint32_t NavEKF::getLastVelNorthEastReset(Vector2f &vel) const
|
||||
{
|
||||
vel = velResetNE;
|
||||
return lastVelReset_ms;
|
||||
|
@ -282,11 +282,11 @@ public:
|
||||
|
||||
// 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
|
||||
uint32_t getLastPosNorthEastReset(Vector2f &pos);
|
||||
uint32_t getLastPosNorthEastReset(Vector2f &pos) const;
|
||||
|
||||
// return the amount of NE velocity change due to the last velocity reset in metres/sec
|
||||
// returns the time of the last reset or 0 if no reset has ever occurred
|
||||
uint32_t getLastVelNorthEastReset(Vector2f &vel);
|
||||
uint32_t getLastVelNorthEastReset(Vector2f &vel) const;
|
||||
|
||||
// report any reason for why the backend is refusing to initialise
|
||||
const char *prearm_failure_reason(void) const;
|
||||
|
Loading…
Reference in New Issue
Block a user