This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello,
I have a question on InstaSPIN-FOC Lab projects in motorware.
Particularly it is associated with the function of Rs Online Recalibration in Lab 7 and Lab 11a.
The main() function calls runRsOnLine() in Lab 7, whereas the main() function calls updateRsOnLine() in Lab 11a.
I have found out that both runRsOnLine() in Lab 7 and updateRsOnLine() in Lab 11a are almost the same source codes, except one code line.
The updateRsOnLine() calls the function of EST_setRsOnLineAngleDelta_pu() in Lab 11a, whereas the runRsOnLine() does not call EST_setRsOnLineAngleDelta_pu() in Lab 7.
Which one is correct?
Thank you for your guidance.
With regards,
JS Yoo
You might take a look at the instaspin lab guide, these two labs use different project structures.
The EST_setRsOnLineAngleDelta_pu() is called in the CTRL_setEstParams() in lab07. The CTRL_setEstParams() is stored in ROM with FAST library.
Hello Yanming Luo,
Thank you for your review.
I have found out that the CTRL_setEstParams() is called at the end of CTRL_setParams().
Meawhile, in Lab07, the CTRL_setParams() is only called at the initialization section of main().
It seems that the CTRL_setEstParams() is not called anymore when the motor is running.
Am I correct?
Thank you for your guidance.
With regards,
JS Yoo
Correct. It's just for setting the estimator parameters during initialization.
Hello Yanming Luo,
Thank you for your review.
What I am asking you is that, while the motor is running, the updateRsOnLine() in Lab 11a periodically calls the EST_setRsOnLineAngleDelta_pu() in the background loop whereas the runRsOnLine() in Lab 7 never calls the EST_setRsOnLineAngleDelta_pu() in the background loop.
Therefore I suppose that the performance of the updateRsOnLine() in Lab 11a might be different from that of the runRsOnLine() in Lab 7.
How do you think?
Thank you for your guidance.
With regards,
JS Yoo
This function doesn't need to be called in the background loop, you might ignore it since the arguments are fixed values for a motor.
Hi Yanming Luo,
Thank you for your review.
I suppose that I might understand what you mean.
I assume that the performances of both updateRsOnLine() in Lab11a and runRsOnLine() in Lab7 are exactly the same because the arguments of the EST_setRsOnLineAngleDelta_pu() are fixed values for a motor.
Is this what you mean?
Thank you for your guidance.
With regards,
JS Yoo