mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 18:08:30 -04:00
AP_NavEKF: Added public function to get NED position
This commit is contained in:
parent
2c567cd721
commit
cb42e1e490
@ -1887,6 +1887,14 @@ void NavEKF::getVelNED(Vector3f &vel)
|
||||
vel.z = states[6];
|
||||
}
|
||||
|
||||
bool NavEKF::getPosNED(Vector3f &pos)
|
||||
{
|
||||
pos.x = states[7];
|
||||
pos.y = states[8];
|
||||
pos.z = states[9];
|
||||
return true;
|
||||
}
|
||||
|
||||
void NavEKF::calcposNE(float lat, float lon)
|
||||
{
|
||||
posNE[0] = RADIUS_OF_EARTH * (lat - latRef);
|
||||
|
Loading…
Reference in New Issue
Block a user