mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 09:28:58 +00:00
simulator: add flag to indicate lockstep
This depends on: https://github.com/mavlink/mavlink/pull/1311 First proposed by @lovettchris.
This commit is contained in:
@@ -168,6 +168,10 @@ mavlink_hil_actuator_controls_t Simulator::actuator_controls_from_outputs()
|
||||
msg.mode |= (armed) ? mode_flag_armed : 0;
|
||||
msg.flags = 0;
|
||||
|
||||
#if defined(ENABLE_LOCKSTEP_SCHEDULER)
|
||||
msg.flags |= 1;
|
||||
#endif
|
||||
|
||||
return msg;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user