Browse Source

AP_HAL_ChibiOS: fix dshot150.

c415-sdk
Andy Piper 4 years ago committed by Andrew Tridgell
parent
commit
721850d00a
  1. 4
      libraries/AP_HAL_ChibiOS/RCOutput.cpp

4
libraries/AP_HAL_ChibiOS/RCOutput.cpp

@ -143,8 +143,8 @@ void RCOutput::rcout_thread() @@ -143,8 +143,8 @@ void RCOutput::rcout_thread()
uint32_t cal_cycles = 5000000UL / 300UL;
_dshot_calibrating = true;
const uint32_t cycle_time_us = _dshot_period_us;
// while calibrating run at 3Khz to allow arming
_dshot_period_us = 300;
// while calibrating run at 2.5Khz to allow arming, this is the fastest rate that dshot150 can manage
_dshot_period_us = 400;
// prime the pump for calibration
chEvtSignal(rcout_thread_ctx, EVT_PWM_SYNTHETIC_SEND);

Loading…
Cancel
Save