FRC2706 / 2020-2706-Robot-Code

The Robot Code for the 2020 FIRST Robotics Competition INFINITE RECHARGE
Other
4 stars 2 forks source link

Motor Current Limiter 2 (Issue #13) #122

Closed Citysurvivor closed 4 years ago

Citysurvivor commented 4 years ago

By default, code limits motor current draw to 40 amps continuously. Current that exceeds 60 amps for more than a second will be clamped down to 40. These values can be changed in Config.java.

Code sends the current draw values to Shuffleboard. Driver feedback, currently a true/false box in Shuffleboard, will warn the driver when current limiting is active and drivetrain power is reduced.

I rewrote my code on a new, up-to-date branch to resolve merge conflicts (my old branch was far behind, so I started over).