mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-24 18:46:37 +08:00
ekf2: rename resetAltitudeTo to initialiseAltitudeTo
This is to better show that the altitude is also used to set the origin.
This commit is contained in:
committed by
Mathieu Bresciani
parent
30d98885b7
commit
aeb182a8ed
@@ -160,7 +160,7 @@ bool Ekf::resetGlobalPositionTo(const double latitude, const double longitude, c
|
||||
}
|
||||
|
||||
// altitude is optional
|
||||
resetAltitudeTo(altitude, vpos_var);
|
||||
initialiseAltitudeTo(altitude, vpos_var);
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -216,7 +216,7 @@ bool Ekf::resetLatLonTo(const double latitude, const double longitude, const flo
|
||||
return true;
|
||||
}
|
||||
|
||||
bool Ekf::resetAltitudeTo(const float altitude, const float vpos_var)
|
||||
bool Ekf::initialiseAltitudeTo(const float altitude, const float vpos_var)
|
||||
{
|
||||
if (!checkAltitudeValidity(altitude)) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user