Through Bore Encoder example Code

Does anyone perhaps have example code for the rev through bore encoder for command based programming?

^^ same questions

Did you check the REV documentation, and the REV example repo?

My team is going to have a pivot for our shooter, so we want to attach the through bore encoder on the shaft, and use a pid controller to dictate the angle we want for the pivot.

This works well. You almost certainly want to use it as an absolute encoder. You have to decide how you are going to connect it electrically – to the roboRIO or to a motor controller. The example code depends on how it is connected, and on what motor controller you are going to use (especially if the encoder is connected there). It also depends on your choice of programming language. :slight_smile:

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.