-
-
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
Angle reset2 #193
Angle reset2 #193
Conversation
hopefull right co-authored by hadizah
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.
a single select and tab and surely this goes to main
* 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)); | ||
} | ||
|
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.
fix indentation
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.
I forgot about a couple thingeries
pieceControl.shootWhenReady(swerve::getPose, swerve::getRobotRelativeVelocity) | ||
.andThen(pieceControl.resetPivotAngle())); |
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.
This should be a part of shootwhenready so that this .andthen doesn't have to be inside of robotcontainer
src/main/java/frc/robot/commands/subsytemHelpers/PieceControl.java
Outdated
Show resolved
Hide resolved
note to self: |
please review this one
hopefully it is right 👍