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

Presentation mode #13

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Conversation

JacksonMcLaughlin
Copy link
Contributor

No description provided.

@JacksonMcLaughlin
Copy link
Contributor Author

still doesn't actually use the presentation mode pref, so need to redeploy to go back to normal

Copy link
Member

@octylFractal octylFractal left a comment

Choose a reason for hiding this comment

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

some stuff for code quality

private final Arm arm = Robot.runningRobot.arm;
private final Clamp clamp = Robot.runningRobot.clamp;
private final Floppies floppies = Robot.runningRobot.floppies;
private final boolean open = clamp.isOpen();
Copy link
Member

Choose a reason for hiding this comment

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

isn't this the state at the start of the robot? why do you set it to this and not some specific state?

@@ -55,4 +55,6 @@
public static final int FORCE_COMPRESSOR_ON_BUTTON = 2;

public static final int AUTO_PUNCH_BUTTON = 2;

public static final int DEAD_MAN_BUTTON = 1;
Copy link
Member

Choose a reason for hiding this comment

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

is this tabbed? please remove


public class PresentationMode {

public static boolean inPresentationMode() {
Copy link
Member

Choose a reason for hiding this comment

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

also tabbed

@@ -82,14 +87,20 @@ public Driver() {
shiftHigh.whenPressed(new ShiftGear(DriveTrain.DriveGear.GEAR_HIGH));
//autoCollectButton.whenPressed(new CollectGrabRaise(true));

// remove climb for adams school
/*
Copy link
Member

Choose a reason for hiding this comment

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

why isn't this just in an if(PresentationMode.inPresentationMode)? that's why i made it

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