Browse Source

fmu:Fix Safety switch breakage from bc9c25a

The update check is on ORB_ID(safety) but the copy
   was from ORB_ID(actuator_armed).
sbg
David Sidrane 6 years ago
parent
commit
22a65f6c1d
  1. 2
      src/drivers/px4fmu/fmu.cpp

2
src/drivers/px4fmu/fmu.cpp

@ -1284,7 +1284,7 @@ PX4FMU::cycle() @@ -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;
}
}

Loading…
Cancel
Save