File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33public 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 () {
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments