Current Limit for NEO Swerve

Hi, our team uses NEO mk4i swerve. Because of that our max current limit is 60. However whenever we power off the robot it always resets the current limit even if we burn flash the robot? I was told during competition today that we can set it in the code. However, i can not seem to figure it out. (This is my first year programming so I do not have much experience.) Can someone please help me. Here is the code. Thanks!

https://codedocs.revrobotics.com/java/com/revrobotics/cansparkmax

Sparkmaxobject.SetSmartCurrent(int limit)
Sparkmaxobject.BurnFlash()

ok thanks, where would I put it in the code?

I usually do it as the very first thing.

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