SparkMax Recommended Settings for Java

We are implementing SparkMax’s with Neo’s for the first time this year, and I’m trying to create a procedure to always put our SparkMax’s into a “known” state on each init…

What are some of the recommended Java API based settings for SparkMax?

So far, I’ve got:
sparkMax.restoreFactoryDefaults(); // Set to Factory Default
sparkMax.setIdleMode(IdleMode.kBrake); // kCoast is Coast… kBrake is Brake
//Set the Amps limit to the NEO550 limit
sparkMax.setSmartCurrentLimit(MotorMaxAmpsConstants.MAX_AMPS_STANTON_LIMIT_NEO550);

Is there anything else I’m missing?

Thanks in Advance! :slight_smile:

1 Like

Consider flashing the settings so if the breaker trips the controller will “wake up” in the same state.

https://codedocs.revrobotics.com/java/com/revrobotics/cansparkmax#burnFlash()

1 Like

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