Spark MAX Encoder Simulation

Anyone know how to simulate the integrated encoder in NEO motors? The EncoderSim class in WPI lib only accepts normal encoders.

1 Like

You can see some details about simulation here: REVLib Information - SPARK MAX (revrobotics.com). I personally haven’t tested this but from what I can see this will update the simulated encoder.

Wait so are you saying basically I don’t have to define a separate encoder, I’ll just run a neo Sim and get the encoder from the spark Max in simulation init?

If you are getting the encoder measurements from CANSparkMax#getEncoder then I think so. Again I should add I have not tested this.

Confirmed from there source code that this does update the encoders.

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