mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-26 14:10:35 +08:00
geo: remove dependency on drv_hrt time driver
This commit is contained in:
committed by
Mathieu Bresciani
parent
f971c0e617
commit
fd04ece6d4
@@ -580,7 +580,7 @@ void SimulatorMavlink::handle_message_hil_state_quaternion(const mavlink_message
|
||||
double lon = hil_state.lon * 1e-7;
|
||||
|
||||
if (!_global_local_proj_ref.isInitialized()) {
|
||||
_global_local_proj_ref.initReference(lat, lon);
|
||||
_global_local_proj_ref.initReference(lat, lon, timestamp);
|
||||
_global_local_alt0 = hil_state.alt / 1000.f;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user