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

Angle reset2 #193

Merged
merged 6 commits into from
Feb 25, 2024
Merged

Angle reset2 #193

merged 6 commits into from
Feb 25, 2024

Conversation

rin-star
Copy link
Contributor

please review this one

hopefully it is right 👍

hopefull right

co-authored by hadizah
co-authored by hadizah
Copy link
Member

@PatribotsProgramming PatribotsProgramming left a comment

Choose a reason for hiding this comment

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

a single select and tab and surely this goes to main

Comment on lines 147 to 156
* The function is a command that resets the angle of the robot
* to be at the min angle.
*
* @return The method is returning a Command object.
*/

public Command angleReset() {
return Commands.runOnce(() -> pivot.setAngle(ShooterConstants.PIVOT_LOWER_LIMIT_DEGREES));
}

Choose a reason for hiding this comment

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

fix indentation

Copy link
Member

@PatribotsProgramming PatribotsProgramming left a comment

Choose a reason for hiding this comment

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

I forgot about a couple thingeries

Comment on lines 270 to 271
pieceControl.shootWhenReady(swerve::getPose, swerve::getRobotRelativeVelocity)
.andThen(pieceControl.resetPivotAngle()));

Choose a reason for hiding this comment

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

This should be a part of shootwhenready so that this .andthen doesn't have to be inside of robotcontainer

@rin-star
Copy link
Contributor Author

note to self:
stow pivot when the climb goes up

@Oliver-Cushman Oliver-Cushman merged commit 70b4856 into main Feb 25, 2024
1 check passed
@Oliver-Cushman Oliver-Cushman deleted the angleReset2 branch February 25, 2024 09:56
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.

3 participants