I am following some guides/tutorials on programming a swerve drive, and in all of the ones that I’ve looked at, they require an “Absolute Encoder” that is plugged into the Analog IN on the RIO.
Our team is new to swerve, and we’re kind of confused as to what absolute encoder we should use, and examples of such.
like, Is the CTRE CANCoder an absolute encoder? Are there other options for absolute encoders?
One caveat to this is that the rev through bore absolute encoder may be difficult to implement in many modern COTS swerve solutions (except for MAXSwerve modules) if you’re running custom swerve or MAXSwerve it may be a good option.
Using a spark max for spark flex, a rev through bore is very easy to implement. If you are using CTRE motor controllers (Falcon/Kraken), it is pretty impossible to hook up.
yes, I agree, I was more talking mechanically. For example, the SDS modules are advertised to work with the CANCoders so I’m not sure how one would hook up a REV Through bore encoder to it. If someone has done it I would love to see it though!
Edit: other encoders work with the SDS modules as well such as the thrifty encoder, I was merely suggesting that it may be challenging to use the REV throughbore specifically.
Some of these do not use analog. My personal preference is to stay away from analog, but it’s been successfully used by teams. It should not be very hard to change your code if you wind up using something besides analog.