Programming help for REV Throughbore Encoder-Absolute Settings

We are trying to use REV’s Throughbore Encoder to provide absolute feedback for our turret. We are having trouble figuring out how to instantiate the encoder in code. We are using the absolute encoder adapter from REV so we should be getting absolute input, but there is no way to actually set the encoder type to absolute in the code, or add an absolute encoder connected to a SparkMax. There doesn’t seem to be much documentation regarding this. Does anyone have any experience?

This is the method you’re looking for: CANSparkMax (FRC-REVLib API)

At this point in time, I recommend looking at our MAXSwerve templates for absolute encoder example code.


Thank You.

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