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:
David Sidrane
2018-09-13 11:21:53 -07:00
parent 698590a5b2
commit 22a65f6c1d
+1 -1
View File
@@ -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;
}
}