mavlink: update local_position publication

Ensure all data is set.
This commit is contained in:
Paul Riseborough
2018-01-29 22:30:34 +01:00
committed by ChristophTobler
parent c294393377
commit 33b75d8e87
+2
View File
@@ -2206,6 +2206,8 @@ 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;
if (_local_pos_pub == nullptr) {
_local_pos_pub = orb_advertise(ORB_ID(vehicle_local_position), &_hil_local_pos);