diff --git a/src/main/java/org/wildstang/hardware/roborio/outputs/WsSpark.java b/src/main/java/org/wildstang/hardware/roborio/outputs/WsSpark.java index 69bf8d3..fb0b6ca 100644 --- a/src/main/java/org/wildstang/hardware/roborio/outputs/WsSpark.java +++ b/src/main/java/org/wildstang/hardware/roborio/outputs/WsSpark.java @@ -154,6 +154,14 @@ public void setCurrentLimit(int stallLimitAmps, int freeLimitAmps, int limitRPM) motor.burnFlash(); } + /** + * Sets the current limit, but does not burn flash. Never use in init + * @param limit the amount of amps drawn before limiting + */ + public void tempCurrentLimit(int limit){ + motor.setSmartCurrentLimit(limit, limit, 0); + } + /** * Enables voltage compensation. */