// Return the last estimated NE position relative to the reference point (m).
// Return true if the estimate is valid
boolNavEKF2_core::getPosNE(Vector2f&posNE)const
{
// There are three modes of operation, absolute position (GPS fusion), relative position (optical flow fusion) and constant position (no position estimate available)
nav_filter_statusstatus;
getFilterStatus(status);
if(PV_AidingMode!=AID_NONE){
// This is the normal mode of operation where we can use the EKF position states
posNE.x=outputDataNew.position.x;
posNE.y=outputDataNew.position.y;
returntrue;
}else{
// In constant position mode the EKF position states are at the origin, so we cannot use them as a position estimate