Other Parts Discussed in Thread: MOTORWARE
Hello,
I am reading through project lab 11a and stumbled over a line of code that I don't understand. Specifically, this is line 777 in proj_lab11a.c of MotorWare 16:
In the main ISR, the function runSetTrigger() is called to set the ADC SoC to the correct point in the PWM period. Why is runSetTrigger() not called if the winding resistance is being calibrated (gMotorVars.Flag_enableRsRecalc)? Shouldn't the correct SoC be determined whenever the current controller is running?
I'd appreciate any insight into this.
Thank you!