Knowledge Base

Get Current Position Block

Where am I???

If a motor is configured to have an encoder, you can use the Get Current Position block to determine the motor's current position, direction or power of rotation.

You could for example use this block to print a motor's encoder position to the Driver Station app's telemetry to see the encoder value as the motor rotates, as follows:

  

Configuration

Parameter Description Compatible Blocks Range
get   Select the motor whose position, direction or power you want to determine.

N/A

 N/A

getCurrentPosition

getDirection

getPower

Returns the selected motor's current encoder position.

Returns the selected motor's direction.

Returns the selected motor's power.

N/A

-∞ to ∞

Forward/Backward

-100 to 100

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Please sign in to leave a comment.

Powered by Zendesk