Skip to content

Commit

Permalink
no timer
Browse files Browse the repository at this point in the history
  • Loading branch information
stwiggy committed Mar 3, 2024
1 parent c31cefc commit 30e00bf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/java/org/carlmontrobotics/commands/ArmTeleop.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public void execute() {
double goalArmRad = goalState.position + speeds * deltaT;
goalArmRad = MathUtil.clamp(goalArmRad, LOWER_ANGLE_LIMIT, UPPER_ANGLE_LIMIT);
goalState = new TrapezoidProfile.State(goalArmRad, 0);
TrapezoidProfile.State setpoint = armSubsystem.calculateCustomSetPoint(armTimer.get(), armSubsystem.getCurrentArmState(), goalState);
TrapezoidProfile.State setpoint = armSubsystem.calculateCustomSetPoint(0.02, armSubsystem.getCurrentArmState(), goalState);
armSubsystem.driveArm(setpoint.position);
lastTime = currTime;
}
Expand All @@ -71,8 +71,6 @@ public double getRequestedSpeeds() {
// Called once the command ends or is interrupted.
@Override
public void end(boolean interrupted) {
armTimer.stop();
armTimer.reset();
}

// Returns true when the command should end.
Expand Down

0 comments on commit 30e00bf

Please sign in to comment.