Hello:
In a typical Position Loop Controller in this picture:
The above position error dynamically changes by subtracting position-feedback from pulse-generator-command.
Can SpinTAC-Position accept this dynamically changed pulse-generator command ?
Can I use the code in lab13a to track(or follow) the incoming generated pulses ?
What value should I pass into STPOSCTL_setVelocityReference() and STPOSCTL_setAccelerationReference() ?
void ST_runPosCtl(ST_Handle handle, CTRL_Handle ctrlHandle)
{
...
// provide the updated references to the SpinTAC Position Control
STPOSCTL_setPositionReference_mrev(stObj->posCtlHandle, 0);
STPOSCTL_setVelocityReference(stObj->posCtlHandle, 0);
STPOSCTL_setAccelerationReference(stObj->posCtlHandle, 0);
// provide the feedback to the SpinTAC Position Control
...
// Run SpinTAC Position Control
STPOSCTL_run(stObj->posCtlHandle);
// Provide SpinTAC Position Control Torque Output to the FOC
...
}
Thank you in advance!
