mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
mavlink stream: Heartbeat system status should neglect the actuator_armed.lockdown flag in HIL, since this is always enabled for HIL.
This commit is contained in:
parent
053d3020b0
commit
3303323971
@ -122,7 +122,8 @@ private:
|
|||||||
}
|
}
|
||||||
|
|
||||||
// system_status overrides
|
// system_status overrides
|
||||||
if (actuator_armed.force_failsafe || actuator_armed.lockdown || actuator_armed.manual_lockdown
|
if (actuator_armed.force_failsafe || (actuator_armed.lockdown
|
||||||
|
&& vehicle_status.hil_state == vehicle_status_s::HIL_STATE_OFF) || actuator_armed.manual_lockdown
|
||||||
|| vehicle_status.nav_state == vehicle_status_s::NAVIGATION_STATE_TERMINATION) {
|
|| vehicle_status.nav_state == vehicle_status_s::NAVIGATION_STATE_TERMINATION) {
|
||||||
system_status = MAV_STATE_FLIGHT_TERMINATION;
|
system_status = MAV_STATE_FLIGHT_TERMINATION;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user