Interface: output vector quantities by "return-by-value"

This commit is contained in:
kamilritz
2020-03-30 13:07:00 +02:00
committed by Mathieu Bresciani
parent 72d8f91b4d
commit 2fa43419d2
16 changed files with 126 additions and 233 deletions
+2 -2
View File
@@ -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;
}