forked from EFeru/bldc-motor-control-FOC
Bugfix to stop hard braking at high speeds
This commit is contained in:
1 parent
c125ba18f4
commit
d18ca7b4d7
1 file changed
+1
-1
@@ -2124,7 +2124,7 @@ void BLDC_controller_step(RT_MODEL *const rtM)
|
||||
* Sum: '<S42>/Sum1'
|
||||
* Sum: '<S42>/Sum3'
|
||||
*/
|
||||
rtb_Divide14_e = (uint16_T)(((int16_T)(DataTypeConversion2 -
|
||||
rtb_Divide14_e = (uint16_T)(((int16_T)(rtP->r_fieldWeakHi -
|
||||
rtP->r_fieldWeakLo) << 15) / (int16_T)(rtP->r_fieldWeakHi -
|
||||
rtP->r_fieldWeakLo));
|
||||
|
||||
|
||||
Reference in new issue
Block a user