mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 12:13:34 +08:00
Ekf: centralize GPS height fusion startup
This commit is contained in:
committed by
Mathieu Bresciani
parent
61763544b6
commit
6b64cf0770
+1
-3
@@ -100,9 +100,7 @@ bool Ekf::collect_gps(const gps_message &gps)
|
||||
|
||||
if (_params.vdist_sensor_type == VDIST_SENSOR_GPS) {
|
||||
ECL_INFO_TIMESTAMPED("GPS checks passed (WGS-84 origin set, using GPS height)");
|
||||
setControlGPSHeight();
|
||||
// zero the sensor offset
|
||||
_hgt_sensor_offset = 0.0f;
|
||||
startGpsHgtFusion();
|
||||
} else {
|
||||
ECL_INFO_TIMESTAMPED("GPS checks passed (WGS-84 origin set)");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user