-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: master
Are you sure you want to change the base?
Conversation
still doesn't actually use the presentation mode pref, so need to redeploy to go back to normal |
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.
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(); |
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.
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; |
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.
is this tabbed? please remove
|
||
public class PresentationMode { | ||
|
||
public static boolean inPresentationMode() { |
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.
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 | |||
/* |
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.
why isn't this just in an if(PresentationMode.inPresentationMode)? that's why i made it
No description provided.