mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-02 02:51:37 +08:00
PWM out sim: Do not obey hardware lockdown flag
This commit is contained in:
@@ -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
|
* Redistribution and use in source and binary forms, with or without
|
||||||
* modification, are permitted provided that the following conditions
|
* modification, are permitted provided that the following conditions
|
||||||
@@ -543,10 +543,10 @@ PWMSim::task_main()
|
|||||||
|
|
||||||
if (updated) {
|
if (updated) {
|
||||||
orb_copy(ORB_ID(actuator_armed), _armed_sub, &aa);
|
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;
|
_armed = aa.armed;
|
||||||
_failsafe = aa.force_failsafe;
|
_failsafe = aa.force_failsafe;
|
||||||
_lockdown = aa.lockdown || aa.manual_lockdown;
|
_lockdown = aa.manual_lockdown;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user