Other Parts Discussed in Thread: MOTORWARE
Dear MotorWare team,
I am using SpinTAC-Suite in my application and found an old thing is: the velocity/speed info which is calculated by:
gMotorVars.SpeedQEP_krpm = _IQmpy(STPOSCONV_getVelocityFiltered(stObj->posConvHandle), _IQ(ST_SPEED_KRPM_PER_PU));
which is placed in the updateGlobalVariables() function, always return unstable values when I set the reference velocity at low speed (below 15 to 20 RPM) for the velocity controller. Although the real speed on the motor shaft is still exact and stable.
How can I get the stable and exact velocity information to report them on plot/graph window when debugging?
In addition, in my project, the current position of the encoder QEP need to be sent to a PC software or a higher-level controller to observe and verify this information, but when I used the HAL_getQepPosnCounts() function, I only received the roll-over position value from 0 to (4*USER_MOTOR_ENCODER_LINES-1). How can I get the absolute position information which is defined as a position in comparison with the home position (at QPOSCNT = 0).
Thank you for your support in advance!