Skip to content
This repository was archived by the owner on Apr 17, 2021. It is now read-only.

Commit d190e8b

Browse files
author
GitHub Actions
committed
Google Java Format
1 parent 0c15eab commit d190e8b

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

RobotCode2020/src/main/java/frc/robot/OI.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,11 @@ public class OI {
2828
public Button abutton = new JoystickButton(controller, RobotMap.A_BUTTON_ID);
2929
public Button bbutton = new JoystickButton(controller, RobotMap.B_BUTTON_ID);
3030
public Button leftBumperButton = new JoystickButton(controller, RobotMap.LB_BUTTON_ID);
31+
3132
public OI() {
32-
leftBumperButton.whileHeld(new InvertDriveSet()); //Donst' wokr Ill just do it kidna janl in the acutl file /pk me not smart
33+
leftBumperButton.whileHeld(
34+
new InvertDriveSet()); // Donst' wokr Ill just do it kidna janl in the acutl file /pk me
35+
// not smart
3336
}
3437
// There are a few additional built in buttons you can use. Additionally,
3538
// by subclassing Button you can create custom triggers and bind those to
@@ -54,5 +57,4 @@ public OI() {
5457
public double getAxis(int axis) {
5558
return controller.getRawAxis(axis);
5659
}
57-
5860
}

RobotCode2020/src/main/java/frc/robot/RobotMap.java

-1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,5 @@ public class RobotMap {
4545
public static final int LB_BUTTON_ID = 4;
4646
// public static final int JOYSTICK_LEFT_TRIGGER_ID = 0;
4747

48-
4948
// public static final int JOYSTICK_MAILBOX_ROLLERS_ID = 0;
5049
}

RobotCode2020/src/main/java/frc/robot/commands/Drive.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@ protected void initialize() {}
2626
// Called repeatedly when this Command is scheduled to run
2727
@Override
2828
protected void execute() {
29-
double speed = Robot.m_oi.getAxis(RobotMap.JOYSTICK_DRIVE_FORWARDS_ID) * -1 * InvertDriveSet.getInverted();
30-
double rotation = Robot.m_oi.getAxis(RobotMap.JOYSTICK_DRIVE_ROTATION_ID) * InvertDriveSet.getInverted();
29+
double speed =
30+
Robot.m_oi.getAxis(RobotMap.JOYSTICK_DRIVE_FORWARDS_ID) * -1 * InvertDriveSet.getInverted();
31+
double rotation =
32+
Robot.m_oi.getAxis(RobotMap.JOYSTICK_DRIVE_ROTATION_ID) * InvertDriveSet.getInverted();
3133

3234
Robot.drivetrain.drive(speed, rotation);
3335
}

RobotCode2020/src/main/java/frc/robot/commands/InvertDriveSet.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ protected void end() {
4444
// Called when another command which requires one or more of the same
4545
// subsystems is scheduled to run
4646
@Override
47-
protected void interrupted() {
48-
}
47+
protected void interrupted() {}
4948

5049
public static int getInverted() {
5150
return inverted;

0 commit comments

Comments
 (0)