-
Notifications
You must be signed in to change notification settings - Fork 4
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
6th per claw mech #12
Conversation
… period's code, isn't currently following state system, nor is it using toggles; can fix in class
…tton release. Also now there are open and close constants for servos; they have placeholder values which we can replace after testing.
} | ||
}; | ||
tankSubsystem.setDefaultCommand(new RunCommand(tank, tankSubsystem)); | ||
} |
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.
idk what happened but the indenting here got real funky.
vscode has auto formatting too: https://code.visualstudio.com/docs/cpp/cpp-ide#_code-formatting
} | ||
|
||
public void lowerClaw(){ | ||
clawIsLifted = true; |
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.
should be false?
} | ||
} | ||
else{ | ||
if (clawIsOpen){ |
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.
you can do two separate if loops so you don't have to duplicate logic, one for lift and one for claw :)
} | ||
|
||
if(controlXbox2.getAButtonReleased()){ | ||
if(clawSubsystem.clawIsOpen){ |
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.
just being picky -- could do clawSubsystem.clawIsOpen = !clawSubsystem.clawIsOpen
"use comments y'all" -Lucy Ma, 12/6/2021
Closed PR so we can delete this branch. Code has been moved to 2021ShopProj repo. |
6th period claw mech w/ servos :)