Hi, I am one of the programming leads for team, and we are going to use TalonFX and encoders and TalonSRX mag encoders for this competition. We have not used either of these in years and thus have no idea how to use them. Can anyone help me with
accessing the encoders
using them (code examples, preferably in command based and java)
For example, on our climb we want to use encoders to measure how far a motor should turn before beginning the next. How we go about seeing that value and using it to start/stop actions?
Both products (TalonFX and TalonSRX) are CTRE products. Have you read through their docs? If not, that’d be the best place to start, especially their “bring up” guide sections.
If you already have, could you better explain where you’re confused? Maybe show some code you’ve tried and explain what about it isn’t working for you?
We are also learning how to use encoders. We have some code that team team 3928 helped us with, but it’s been months since then and we still don’t understand the code. Do you think you can take a look at it and help explain it to us?