mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-29 13:54:07 +08:00
PWM out sim: Do not obey hardware lockdown flag
This commit is contained in:
parent
ea5caf258f
commit
7bd8514697
@ -1,6 +1,6 @@
|
||||
/****************************************************************************
|
||||
*
|
||||
* Copyright (c) 2012-2015 PX4 Development Team. All rights reserved.
|
||||
* Copyright (c) 2012-2017 PX4 Development Team. All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
@ -543,10 +543,10 @@ PWMSim::task_main()
|
||||
|
||||
if (updated) {
|
||||
orb_copy(ORB_ID(actuator_armed), _armed_sub, &aa);
|
||||
/* do not obey the lockdown value, as lockdown is for PWMSim */
|
||||
/* do not obey the lockdown value, as lockdown is for PWMSim. Only obey manual lockdown */
|
||||
_armed = aa.armed;
|
||||
_failsafe = aa.force_failsafe;
|
||||
_lockdown = aa.lockdown || aa.manual_lockdown;
|
||||
_lockdown = aa.manual_lockdown;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user