Skip to content

Commit

Permalink
got rid of timer again
Browse files Browse the repository at this point in the history
  • Loading branch information
sofiebudman committed Mar 3, 2024
1 parent dc69883 commit 2072eeb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/org/carlmontrobotics/subsystems/Arm.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public Arm() {

SmartDashboard.putData("Arm", this);

//armProfileTimer.start(); <-- don't neeed timer anymore


goalState = getCurrentArmState();

Expand Down Expand Up @@ -130,7 +130,7 @@ public void periodic() {

// SmartDashboard.putNumber("ArmPos", getArmPos());

//driveArm(armProfile.calculate(armProfileTimer.get()));


autoCancelArmCommand();
}
Expand Down Expand Up @@ -166,7 +166,7 @@ public void setArmTarget(double targetPos) {
targetPos = getArmClampedGoal(targetPos);

armProfile = new TrapezoidProfile(TRAP_CONSTRAINTS);
armProfileTimer.reset();


goalState.position = targetPos;
goalState.velocity = 0;
Expand Down

0 comments on commit 2072eeb

Please sign in to comment.