mavlink : update for compatibility with new navigation limits architechture

This commit is contained in:
Mohammed Kabir
2018-05-19 14:13:16 -04:00
committed by Lorenz Meier
parent 1d1dec0a8b
commit e8f1d50758
+4 -2
View File
@@ -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);