i am working on a tracking application where the motor needs to move such that it keeps tracking an object of interest.
Everytime the system knows where the object is, it gets a desired position which if different from current position, ends up causing a finite value for Position Step. The spintac move calculates a position profile from current position to desired position while keeping within the max velocity, acceleration, deceleration and jerk limits. And follows it as best as it can, it works pretty good but i have two questions
1) Let's say a define position profile is being followed ie its not complete yet, if i want to update the desired destination position , is it possible for spintac move to drop the profile that it was on and just start another new profile based on a new desired destination position , current position, current velocity while within the max velocity, acceleration, deceleration and jerk limits? I would like the start velocity of the new profile be same as current velocity so the transition is not jerky or stops during transition.
2) My sensor input rate is not very fast so sometimes the motor goes from pos1 to pos2 , stops at pos2 and then goes to pos3. To make it seemless, It would be great if i provided not only pos2 but also desired velocity at pos2 so that it never comes to standstill as pos2 and just keep moving so that when the pos3 input comes in, it can go for pos3. Is that possible? I do the functions STPOSMOVE_getVelocityStart and STPOSMOVE_setVelocityEnd, I wonder if i can just assigne values to STPOSMOVE_setVelocityEnd while assigning pos2 and then for movement to pos3, i can assign current velocity to STPOSMOVE_getVelocityStart . any sugegstions?