Merge pull request #418 from secupol/master

Update mcpwm_foc.c
This commit is contained in:
Benjamin Vedder 2022-02-20 17:57:35 +01:00 committed by GitHub
commit 2b7a698c02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -2255,7 +2255,7 @@ int mcpwm_foc_dc_cal(bool cal_undriven) {
TIM_GenerateEvent(TIM8, TIM_EventSource_COM);
#endif
chThdSleepMilliseconds(10);
chThdSleep(1);
for (float i = 0;i < samples;i++) {
current_sum[0] += m_motor_1.m_currents_adc[0];