mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2025-12-11 09:01:54 +08:00
simulator: update local_position publication
Ensure all data is set.
This commit is contained in:
committed by
ChristophTobler
parent
4b2dcddec2
commit
64551607bc
@@ -529,6 +529,8 @@ void Simulator::handle_message(mavlink_message_t *msg, bool publish)
|
||||
hil_lpos.ref_lon = _hil_ref_lon;
|
||||
hil_lpos.ref_alt = _hil_ref_alt;
|
||||
hil_lpos.ref_timestamp = _hil_ref_timestamp;
|
||||
hil_lpos.vxy_max = 0.0f;
|
||||
hil_lpos.limit_hagl = false;
|
||||
|
||||
// always publish ground truth attitude message
|
||||
int hil_lpos_multi;
|
||||
|
||||
Reference in New Issue
Block a user