How to change speed resolution in FOC code
I wasn't sure if this was the correct forum for FOC code questions.
I need to use the smallest speed resolution available in the ST FOC code. In the file mc_stm_types.h I set the following define:
#define SPEED_UNIT _001HZ
My understanding is I should be able to measure & set speed with a resolution of 0.01Hz doing this.
I'm running a motor and the RPM displayed in the GUI is toggling between the two values 1996 and 2000. Also, using procedure MC_GetMecSpeedAverageMotor1() I record values of only 3328 and 3334. This is equivalent to 33.28Hz and 33.34Hz which is 0.06Hz resolution.
Do I have something set wrong in the code? Is there any way to improve upon this?
Thanks,
Brian