-
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Guillotine logic #207
Guillotine logic #207
Conversation
…will be consistent after some testing hopefully. Test on bad note first) Co-authored-by: Tina H <derp00monsta@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks quite shrimple 🦐🦐🦐
src/main/java/frc/robot/commands/subsytemHelpers/PieceControl.java
Outdated
Show resolved
Hide resolved
@@ -37,7 +37,7 @@ public Command outtake() { | |||
} | |||
|
|||
public Command outtakeSlow() { | |||
return runOnce(() -> setSpeed(-0.1)); | |||
return runOnce(() -> setSpeed(TrapConstants.TRAPPER_OUTTAKE_SLOW)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks
public Command setPositionCommand(double pos, boolean waitUntilStuck) { | ||
return Commands.runOnce(() -> this.setPosition(pos)) | ||
.andThen(Commands.waitUntil(() -> atDesiredPosition() || (waitUntilStuck && stuckOnGuillotine()))); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider overloading this with no boolean to default it to false
Mainly built off of rudy's logic
Tested and worked in sim