Skip to content

Commit c9e0854

Browse files
committed
Renamed vision_yaw to visionYaw.
1 parent 7e9f6ce commit c9e0854

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/main/java/frc/robot/RobotState.java

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

33
public class RobotState {
44
private static final RobotState state;
5-
public double vision_yaw;
5+
public double visionYaw;
66

77
static {
88
state = new RobotState();
99
}
1010

1111
public RobotState() {
12-
vision_yaw = 0.0;
12+
visionYaw = 0.0;
1313
}
1414

1515
public static RobotState get() {

src/main/java/frc/robot/subsystems/drive/DriveIOSparkMax.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public void setVelocityRadPerSecR(double rightVelocityRadPerSec){
9595

9696
@Override
9797
public void rotateToTag() {
98-
var newVelocity = pidController.calculate(RobotState.get().vision_yaw, 0);
98+
var newVelocity = pidController.calculate(RobotState.get().visionYaw, 0);
9999
leftLeader.set(newVelocity);
100100
rightLeader.set(-newVelocity);
101101
}

src/main/java/frc/robot/subsystems/vision/Vision.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public void periodic() {
2727
}
2828

2929
public Command updateYaw() {
30-
return Commands.runOnce(() -> {RobotState.get().vision_yaw = inputs.yaw;}, this);
30+
return Commands.runOnce(() -> {RobotState.get().visionYaw = inputs.yaw;}, this);
3131
}
3232
public double distanceFromTarget(){
3333
return inputs.distanceFromTarget;

0 commit comments

Comments
 (0)