CTRE Encoder and Pigeon Reset

Hello everyone,
I have just started working with CTRE products and I was not quite sure about the inclusiveness of the documentation available through this site.

I specifically wanted to learn how you can reset the SRX Mag Encoders or the Pigeon Gyro through code. I have read that some teams get the initPosition on RobotInit and subtract that from the current value during Periodic. Honestly, I do not want to do it this way. What are the other ways to accomplish this?

Also, do you know any other websites/papers with better documentation about the functions for Talon SRX and their explanations respectively? (If it is available on the website, I could not find it. Any directions towards clear documentation are appreciated.)

Thanks and have a great 2020 season!

1 Like

For the Pigeon, you can use the setYaw(double angleDeg, int timeoutMS) method. For the Talons, you can use the setSelectedSensorPosition(int position) method.

For documentation, go to CTR-Electronic’s webpage, find the item, and select Tech Resources

FYI when resetting, the value takes time to update, so if you check the value again you will see the old value for a couple of runs.

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