mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 10:53:33 +08:00
Interface: output vector quantities by "return-by-value"
This commit is contained in:
committed by
Mathieu Bresciani
parent
72d8f91b4d
commit
2fa43419d2
@@ -307,7 +307,7 @@ void Ekf::updateTerrainValidity()
|
||||
}
|
||||
|
||||
// get the estimated vertical position of the terrain relative to the NED origin
|
||||
void Ekf::getTerrainVertPos(float *ret)
|
||||
float Ekf::getTerrainVertPos() const
|
||||
{
|
||||
memcpy(ret, &_terrain_vpos, sizeof(float));
|
||||
return _terrain_vpos;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user