Need help with TalonFX encoders

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

  1. accessing the encoders
  2. 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?

Thanks for the help

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?

3 Likes

See link below. It seems ctre separated out their store from their docs site.

1 Like

I hadnt seen the bring up section before, im looking at it now. Ill update if i need more help

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?

I’d be happy to help you out. Could you post the code?

I’m also willing to help. Is there some code I could look at?

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