Dual motor flux linkage measurement bug fix

This commit is contained in:
Benjamin Vedder 2023-08-22 20:10:09 +02:00
parent a8a88bba1e
commit d114862483
2 changed files with 4 additions and 2 deletions

View File

@ -36,6 +36,7 @@
* Removed built-in balance app. The balance-package can be used instead, which is where new development is done.
* Added option to select PID-controller speed source.
* Try to make odometer persistent even without shutdown switch. See https://github.com/vedderb/bldc/pull/624
* Dual motor flux linkage measurement current spike bug fix.
### 6.02
#### 2023-03-12
@ -867,4 +868,5 @@
#### Released 2016-06-27
* HW60 support
* 3 low/high side shunt support
* permanent NRF option
* permanent NRF option

View File

@ -1163,7 +1163,7 @@ int conf_general_measure_flux_linkage_openloop(float current, float duty,
chThdSleepMilliseconds(500);
// Turn off the FETs
mcpwm_foc_stop_pwm(false);
mcpwm_foc_stop_pwm(mc_interface_get_motor_thread() == 2);
// Clear any lingering current set points
mcpwm_foc_set_current(0.0);