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

Commit

Permalink
Spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
qntmcube committed Mar 31, 2024
1 parent 0593830 commit e8f4e73
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ public final void run(Context context) {
}

// TODO: For some reason, the gyro is consistenty 180 degrees from expected in teleop
// TODO: We should figure out why after EBR but for now we can just reset the gyro to 180 of current angle
// TODO: We should figure out why after EBR but for now we can just reset the gyro to 180 of
// current angle
context.takeOwnership(drive);
drive.resetGyro(180 + drive.getHeading());
context.releaseOwnership(drive);
Expand Down
5 changes: 2 additions & 3 deletions src/main/java/com/team766/robot/reva/DriverOI.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ protected void handlePre() {
rightJoystickY =
-createJoystickDeadzone(rightJoystick.getAxis(InputConstants.AXIS_LEFT_RIGHT))
* ControlConstants.MAX_ROTATIONAL_VELOCITY; // For steer

}
}

@Override
protected void handleOI(Context context) {
Expand Down Expand Up @@ -121,7 +120,7 @@ protected void handleOI(Context context) {
visionContext = context.startAsync(new DriverShootVelocityAndIntake());

} else if (rightJoystick.getButtonReleased(
InputConstants.BUTTON_START_SHOOTING_PROCEDURE)) {
InputConstants.BUTTON_START_SHOOTING_PROCEDURE)) {

visionContext.stop();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

import com.team766.framework.Context;
import com.team766.framework.Procedure;
import com.team766.robot.reva.mechanisms.Shoulder.ShoulderPosition;
import com.team766.robot.reva.Robot;
import com.team766.robot.reva.mechanisms.Shoulder.ShoulderPosition;

public class ShootAtSubwoofer extends Procedure {
public void run(Context context) {
context.takeOwnership(Robot.shoulder);
Robot.shoulder.rotate(ShoulderPosition.SHOOT_LOW);
context.releaseOwnership(Robot.shoulder);
new ShootVelocityAndIntake().run(context);
}
public void run(Context context) {
context.takeOwnership(Robot.shoulder);
Robot.shoulder.rotate(ShoulderPosition.SHOOT_LOW);
context.releaseOwnership(Robot.shoulder);
new ShootVelocityAndIntake().run(context);
}
}

0 comments on commit e8f4e73

Please sign in to comment.