mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 16:58:54 +08:00
fmu:Fix Safety switch breakage from bc9c25a
The update check is on ORB_ID(safety) but the copy was from ORB_ID(actuator_armed).
This commit is contained in:
@@ -1284,7 +1284,7 @@ PX4FMU::cycle()
|
||||
if (updated) {
|
||||
safety_s safety;
|
||||
|
||||
if (orb_copy(ORB_ID(actuator_armed), _safety_sub, &safety) == 0) {
|
||||
if (orb_copy(ORB_ID(safety), _safety_sub, &safety) == 0) {
|
||||
_safety_off = !safety.safety_switch_available || safety.safety_off;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user