How to obtain current servo position in pololu SDK

Please I need help on how to get the current servo position using pololu sdk in C#. Thanks.


You should look at the getVariables method in the Usc class. Also, there are examples in MaestroAdvancedExample and UscCmd of how to call getVariables in order to get the servo position. Please note that this is not the actual position of the servo, but just the current pulse width that the Maestro is sending.


Thanks. I thought of another method. I found out that if I could determine the time duration it would take the servo to move from one position to another, I could achieve the same aim I set out to achieve in the first place. I just wrote a program to determine the time duration based on the selected speed in the maestro control centre.