Skip to content
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

Merged
merged 9 commits into from
Feb 28, 2024
Merged

Guillotine logic #207

merged 9 commits into from
Feb 28, 2024

Conversation

Oliver-Cushman
Copy link
Contributor

Mainly built off of rudy's logic

Tested and worked in sim

@Oliver-Cushman Oliver-Cushman linked an issue Feb 28, 2024 that may be closed by this pull request
3 tasks
Copy link
Member

@GalexY727 GalexY727 left a comment

Choose a reason for hiding this comment

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

Looks quite shrimple 🦐🦐🦐

@@ -37,7 +37,7 @@ public Command outtake() {
}

public Command outtakeSlow() {
return runOnce(() -> setSpeed(-0.1));
return runOnce(() -> setSpeed(TrapConstants.TRAPPER_OUTTAKE_SLOW));
Copy link
Member

Choose a reason for hiding this comment

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

thanks

Comment on lines 90 to 93
public Command setPositionCommand(double pos, boolean waitUntilStuck) {
return Commands.runOnce(() -> this.setPosition(pos))
.andThen(Commands.waitUntil(() -> atDesiredPosition() || (waitUntilStuck && stuckOnGuillotine())));
}
Copy link
Member

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

@Oliver-Cushman Oliver-Cushman merged commit 59ad33d into main Feb 28, 2024
1 check passed
@Oliver-Cushman Oliver-Cushman deleted the Guillotine-Logic branch February 28, 2024 11:27
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.

No more guillotine 😃
3 participants