mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-21 15:13:18 +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
@@ -296,7 +296,7 @@ bool Ekf::resetGlobalPosToExternalObservation(const double latitude, const doubl
|
||||
return false;
|
||||
}
|
||||
|
||||
resetAltitudeTo(altitude, sq(epv));
|
||||
initialiseAltitudeTo(altitude, sq(epv));
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -370,7 +370,7 @@ bool Ekf::resetGlobalPosToExternalObservation(const double latitude, const doubl
|
||||
const float obs_var = math::max(sq(epv), sq(0.01f));
|
||||
|
||||
ECL_INFO("reset height to external observation");
|
||||
resetAltitudeTo(gpos_corrected.altitude(), obs_var);
|
||||
initialiseAltitudeTo(gpos_corrected.altitude(), obs_var);
|
||||
_last_known_gpos.setAltitude(gpos_corrected.altitude());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user