From fcb1bb2bb6af0d9f46ea86f124c5eb98d47b0bf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20J=C3=A4hne?= Date: Sun, 17 May 2015 14:50:17 +0200 Subject: [PATCH] FIX HIL GPS conversion --- src/modules/mavlink/mavlink_receiver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/mavlink/mavlink_receiver.cpp b/src/modules/mavlink/mavlink_receiver.cpp index 544d343b43..40adc6b054 100644 --- a/src/modules/mavlink/mavlink_receiver.cpp +++ b/src/modules/mavlink/mavlink_receiver.cpp @@ -1386,7 +1386,7 @@ MavlinkReceiver::handle_message_hil_state_quaternion(mavlink_message_t *msg) if (!_hil_local_proj_inited) { _hil_local_proj_inited = true; _hil_local_alt0 = hil_state.alt / 1000.0f; - map_projection_init(&_hil_local_proj_ref, hil_state.lat, hil_state.lon); + map_projection_init(&_hil_local_proj_ref, lat, lon); hil_local_pos.ref_timestamp = timestamp; hil_local_pos.ref_lat = lat; hil_local_pos.ref_lon = lon;