From e8f1d50758de40736f8ce8ce97606fdfb9b6901c Mon Sep 17 00:00:00 2001 From: Mohammed Kabir Date: Sat, 19 May 2018 14:13:16 -0400 Subject: [PATCH] mavlink : update for compatibility with new navigation limits architechture --- src/modules/mavlink/mavlink_receiver.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/modules/mavlink/mavlink_receiver.cpp b/src/modules/mavlink/mavlink_receiver.cpp index 793eee9286..f8c3810464 100644 --- a/src/modules/mavlink/mavlink_receiver.cpp +++ b/src/modules/mavlink/mavlink_receiver.cpp @@ -2312,8 +2312,10 @@ MavlinkReceiver::handle_message_hil_state_quaternion(mavlink_message_t *msg) _hil_local_pos.yaw = euler.psi(); _hil_local_pos.xy_global = true; _hil_local_pos.z_global = true; - _hil_local_pos.vxy_max = 0.0f; - _hil_local_pos.limit_hagl = false; + _hil_local_pos.vxy_max = INFINITY; + _hil_local_pos.vz_max = INFINITY; + _hil_local_pos.hagl_min = INFINITY; + _hil_local_pos.hagl_max = INFINITY; if (_local_pos_pub == nullptr) { _local_pos_pub = orb_advertise(ORB_ID(vehicle_local_position), &_hil_local_pos);