Browse Source

AP_Arming: call rcout arming checks

c415-sdk
Andy Piper 4 years ago committed by Andrew Tridgell
parent
commit
38ef81e9e9
  1. 5
      libraries/AP_Arming/AP_Arming.cpp

5
libraries/AP_Arming/AP_Arming.cpp

@ -1175,6 +1175,11 @@ bool AP_Arming::arm_checks(AP_Arming::Method method) @@ -1175,6 +1175,11 @@ bool AP_Arming::arm_checks(AP_Arming::Method method)
}
}
// enable any pending dshot commands to be flushed before sending actual throttle values
if (!hal.rcout->prepare_for_arming()) {
return false;
}
#if HAL_GYROFFT_ENABLED
// make sure the FFT subsystem is enabled if arming checks have been disabled
AP_GyroFFT *fft = AP::fft();

Loading…
Cancel
Save