From 413bbb44c78d576f9bad2d3a12f064fcef42eac5 Mon Sep 17 00:00:00 2001 From: haitomatic Date: Mon, 18 Nov 2024 11:33:20 +0000 Subject: [PATCH] Mavlink HITL: remove set home position only condition --- src/modules/mavlink/mavlink_receiver.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/modules/mavlink/mavlink_receiver.cpp b/src/modules/mavlink/mavlink_receiver.cpp index 253eb4099fba..109f1f70cd5e 100644 --- a/src/modules/mavlink/mavlink_receiver.cpp +++ b/src/modules/mavlink/mavlink_receiver.cpp @@ -2337,11 +2337,6 @@ MavlinkReceiver::handle_message_hil_sensor(mavlink_message_t *msg) void MavlinkReceiver::handle_message_hil_gps(mavlink_message_t *msg) { - // Only use to set home position - if (_mavlink->get_hil_enabled() && _hil_pos_ref.isInitialized()) { - return; - } - mavlink_hil_gps_t hil_gps; mavlink_msg_hil_gps_decode(msg, &hil_gps);