This repository was archived by the owner on Jan 13, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +11
-11
lines changed
src/main/java/com/team766/robot Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,8 @@ public final void run(Context context) {
120
120
}
121
121
122
122
// 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
124
125
context .takeOwnership (drive );
125
126
drive .resetGyro (180 + drive .getHeading ());
126
127
context .releaseOwnership (drive );
Original file line number Diff line number Diff line change @@ -74,8 +74,7 @@ protected void handlePre() {
74
74
rightJoystickY =
75
75
-createJoystickDeadzone (rightJoystick .getAxis (InputConstants .AXIS_LEFT_RIGHT ))
76
76
* ControlConstants .MAX_ROTATIONAL_VELOCITY ; // For steer
77
-
78
- }
77
+ }
79
78
80
79
@ Override
81
80
protected void handleOI (Context context ) {
@@ -121,7 +120,7 @@ protected void handleOI(Context context) {
121
120
visionContext = context .startAsync (new DriverShootVelocityAndIntake ());
122
121
123
122
} else if (rightJoystick .getButtonReleased (
124
- InputConstants .BUTTON_START_SHOOTING_PROCEDURE )) {
123
+ InputConstants .BUTTON_START_SHOOTING_PROCEDURE )) {
125
124
126
125
visionContext .stop ();
127
126
Original file line number Diff line number Diff line change 2
2
3
3
import com .team766 .framework .Context ;
4
4
import com .team766 .framework .Procedure ;
5
- import com .team766 .robot .reva .mechanisms .Shoulder .ShoulderPosition ;
6
5
import com .team766 .robot .reva .Robot ;
6
+ import com .team766 .robot .reva .mechanisms .Shoulder .ShoulderPosition ;
7
7
8
8
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
+ }
15
15
}
You can’t perform that action at this time.
0 commit comments