Know motor position during moviment

Hi all
I am using a 6 channel USB Micro Maestro and I use C #.
I would like to know the real positions during the motors’s movements.
I found “getVariables” in the USC class but can’t get a good result.

Thanks in advance

getVariables returns an array of servos. You can then read the “position” value from any of these.

Note, the servo controller merely knows what commanded position it is sending (which will follow the trajectory move you’ve asked it to perform). The actual positions (as read by an encoder) are not known by the servo controller. Only the servo motor itself knows this and tries to cancel the difference between this actual position and commanded position.

1 Like