DeepBlueRobotics / lib199

Code that we reuse in different projects/years.
Other
2 stars 0 forks source link

Add method to MotorErrors.java to check if a CANSparkMax is currently overheated #61

Closed FriedLongJohns closed 1 month ago

FriedLongJohns commented 11 months ago

Unfortunately I don't think anyone wants to read this, so I left the method as multiple lines.

public static boolean isSparkMaxOveheated(CANSparkMax spark){return spark.getMotorTempurature > spark.TemperatureLimits.get(spark.getDeviceId());}