Browse Source

AP_UAVCAN: send ESCs when disarmed

we should only be checking the safety state
master
Andrew Tridgell 7 years ago committed by Francisco Ferreira
parent
commit
62fbe13690
  1. 2
      libraries/AP_UAVCAN/AP_UAVCAN.cpp

2
libraries/AP_UAVCAN/AP_UAVCAN.cpp

@ -394,7 +394,7 @@ void AP_UAVCAN::SRV_push_servos() @@ -394,7 +394,7 @@ void AP_UAVCAN::SRV_push_servos()
SRV_sem->give();
_SRV_armed = hal.util->get_soft_armed() && hal.util->safety_switch_state() != AP_HAL::Util::SAFETY_DISARMED;
_SRV_armed = hal.util->safety_switch_state() != AP_HAL::Util::SAFETY_DISARMED;
}

Loading…
Cancel
Save