mirror of https://github.com/ArduPilot/ardupilot
AP_NavEKF: Let reported position whilst disarmed show inertial errors
Showing the positon states (which are nominally zero) in addition to the last known offset can provide useful log information.
This commit is contained in:
parent
d26121036f
commit
fb1962b111
|
@ -3528,8 +3528,8 @@ void NavEKF::getVelNED(Vector3f &vel) const
|
||||||
bool NavEKF::getPosNED(Vector3f &pos) const
|
bool NavEKF::getPosNED(Vector3f &pos) const
|
||||||
{
|
{
|
||||||
if (constPosMode) {
|
if (constPosMode) {
|
||||||
pos.x = lastKnownPositionNE.x;
|
pos.x = state.position.x + lastKnownPositionNE.x;
|
||||||
pos.y = lastKnownPositionNE.y;
|
pos.y = state.position.y + lastKnownPositionNE.y;
|
||||||
} else {
|
} else {
|
||||||
pos.x = state.position.x;
|
pos.x = state.position.x;
|
||||||
pos.y = state.position.y;
|
pos.y = state.position.y;
|
||||||
|
|
Loading…
Reference in New Issue