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

6th per claw mech #12

Closed
wants to merge 12 commits into from
Closed

6th per claw mech #12

wants to merge 12 commits into from

Conversation

Ippyb
Copy link
Contributor

@Ippyb Ippyb commented Dec 2, 2021

6th period claw mech w/ servos :)

Ippyb added 3 commits December 1, 2021 01:02
… 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));
}
Copy link
Contributor

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;
Copy link
Contributor

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){
Copy link
Contributor

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){
Copy link
Contributor

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

@seasew seasew closed this Dec 12, 2021
@seasew
Copy link
Contributor

seasew commented Dec 12, 2021

Closed PR so we can delete this branch. Code has been moved to 2021ShopProj repo.

@seasew seasew deleted the 6thPerClawMech branch December 12, 2021 00:15
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.

5 participants