Wrong code in R3_2_CurrentReadingCalibration?
used sdk : 5.4.7
mcu : stm32f446re
dual motor
In function R3_2_CurrentReadingCalibration has below code:
pHandle->PhaseAOffset >>= 3;
pHandle->PhaseBOffset >>= 3;
pHandle->PhaseCOffset >>= 3;
But NB_CONVERSIONS is defined 16u, So is it true the right code should be
pHandle->PhaseAOffset >>= 4;
pHandle->PhaseBOffset >>= 4;
pHandle->PhaseCOffset >>= 4;
I checked the example code used stm32g431 as below:
pHandle->PhaseAOffset /= NB_CONVERSIONS;
pHandle->PhaseBOffset /= NB_CONVERSIONS;
pHandle->PhaseCOffset /= NB_CONVERSIONS;
