Skip to content

Commit

Permalink
Added a temporary current limit setter to WsSpark
Browse files Browse the repository at this point in the history
  • Loading branch information
fruzyna committed Jan 2, 2025
1 parent 9256cbf commit 8be47f8
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down

0 comments on commit 8be47f8

Please sign in to comment.