diff --git a/BLDC_controller_ert_rtw/BLDC_controller.c b/BLDC_controller_ert_rtw/BLDC_controller.c index ae63bd4..7e6be90 100644 --- a/BLDC_controller_ert_rtw/BLDC_controller.c +++ b/BLDC_controller_ert_rtw/BLDC_controller.c @@ -2124,7 +2124,7 @@ void BLDC_controller_step(RT_MODEL *const rtM) * Sum: '/Sum1' * Sum: '/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));