Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
remove bad state vars :(
Browse files Browse the repository at this point in the history
  • Loading branch information
MOE 365 Programming Laptop authored and MOE 365 Programming Laptop committed Apr 28, 2023
1 parent 57c4458 commit f539ecb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main/java/frc/robot/teleop/DriveCode.java
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public void teleopInit(GenericRobot robot) {

robot.resetStartPivots();
robot.setPose();
desiredYaw = 0;
desiredYaw = robot.getYaw();
firstTrip = false;
secondTrip = false;
pressed = false;
Expand Down Expand Up @@ -143,7 +143,10 @@ public void teleopPeriodic(GenericRobot robot) {
SmartDashboard.putNumber("desiredArmPos", desiredArmPos);

Pose2d currPose = robot.getPose();
if (armTimer.get() < .1) desiredArmPos = robot.getPotDegrees();
if (armTimer.get() < .1){
desiredYaw = robot.getYaw();
desiredArmPos = robot.getPotDegrees();
}


////////////////////////////////////////////////////////////////////////////////////////////////////////////Send Pose to Dash
Expand Down

0 comments on commit f539ecb

Please sign in to comment.