Skip to content

Added timeout for the stall current of the D-Bug Speed Controller - #47

Open
frc3316 wants to merge 1 commit into
masterfrom
sc_stall_timeout
Open

Added timeout for the stall current of the D-Bug Speed Controller#47
frc3316 wants to merge 1 commit into
masterfrom
sc_stall_timeout

Conversation

@frc3316

@frc3316 frc3316 commented Feb 20, 2016

Copy link
Copy Markdown
Owner

No description provided.

private double maxCurrent; // The high threshold for current control

private double stallTimeout;
private double stallInitTime = 0.0; // The FTGA time when the current turns to stall

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's FPGA

@karkason

Copy link
Copy Markdown
Collaborator

Code looks good.
Consider rewriting the conditions in setMotors to be more readable.

@karkason

Copy link
Copy Markdown
Collaborator

Also, Please refactor the code in the constructors to remove code duplication. Errors will appear because of this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants