Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Commit e8f4e73

Browse files
committed
Spotless
1 parent 0593830 commit e8f4e73

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

src/main/java/com/team766/robot/common/procedures/PathSequenceAuto.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,8 @@ public final void run(Context context) {
120120
}
121121

122122
// TODO: For some reason, the gyro is consistenty 180 degrees from expected in teleop
123-
// TODO: We should figure out why after EBR but for now we can just reset the gyro to 180 of current angle
123+
// TODO: We should figure out why after EBR but for now we can just reset the gyro to 180 of
124+
// current angle
124125
context.takeOwnership(drive);
125126
drive.resetGyro(180 + drive.getHeading());
126127
context.releaseOwnership(drive);

src/main/java/com/team766/robot/reva/DriverOI.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,7 @@ protected void handlePre() {
7474
rightJoystickY =
7575
-createJoystickDeadzone(rightJoystick.getAxis(InputConstants.AXIS_LEFT_RIGHT))
7676
* ControlConstants.MAX_ROTATIONAL_VELOCITY; // For steer
77-
78-
}
77+
}
7978

8079
@Override
8180
protected void handleOI(Context context) {
@@ -121,7 +120,7 @@ protected void handleOI(Context context) {
121120
visionContext = context.startAsync(new DriverShootVelocityAndIntake());
122121

123122
} else if (rightJoystick.getButtonReleased(
124-
InputConstants.BUTTON_START_SHOOTING_PROCEDURE)) {
123+
InputConstants.BUTTON_START_SHOOTING_PROCEDURE)) {
125124

126125
visionContext.stop();
127126

src/main/java/com/team766/robot/reva/procedures/ShootAtSubwoofer.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
import com.team766.framework.Context;
44
import com.team766.framework.Procedure;
5-
import com.team766.robot.reva.mechanisms.Shoulder.ShoulderPosition;
65
import com.team766.robot.reva.Robot;
6+
import com.team766.robot.reva.mechanisms.Shoulder.ShoulderPosition;
77

88
public class ShootAtSubwoofer extends Procedure {
9-
public void run(Context context) {
10-
context.takeOwnership(Robot.shoulder);
11-
Robot.shoulder.rotate(ShoulderPosition.SHOOT_LOW);
12-
context.releaseOwnership(Robot.shoulder);
13-
new ShootVelocityAndIntake().run(context);
14-
}
9+
public void run(Context context) {
10+
context.takeOwnership(Robot.shoulder);
11+
Robot.shoulder.rotate(ShoulderPosition.SHOOT_LOW);
12+
context.releaseOwnership(Robot.shoulder);
13+
new ShootVelocityAndIntake().run(context);
14+
}
1515
}

0 commit comments

Comments
 (0)