geo: remove dependency on drv_hrt time driver

This commit is contained in:
Matthias Grob
2024-10-04 14:45:57 +02:00
committed by Mathieu Bresciani
parent f971c0e617
commit fd04ece6d4
9 changed files with 13 additions and 34 deletions
+1 -1
View File
@@ -2695,7 +2695,7 @@ MavlinkReceiver::handle_message_hil_state_quaternion(mavlink_message_t *msg)
const double lon = hil_state.lon * 1e-7;
if (!_global_local_proj_ref.isInitialized() || !PX4_ISFINITE(_global_local_alt0)) {
_global_local_proj_ref.initReference(lat, lon);
_global_local_proj_ref.initReference(lat, lon, hrt_absolute_time());
_global_local_alt0 = hil_state.alt / 1000.f;
}