Skip to content

Commit

Permalink
no more errors in armteleop woo hoo
Browse files Browse the repository at this point in the history
  • Loading branch information
stwiggy committed Mar 2, 2024
1 parent 5d98af8 commit bd5793c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/carlmontrobotics/commands/ArmTeleop.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void execute() {
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);
armSubsystem.driveArm(setpoint);
armSubsystem.driveArm(setpoint.position);
lastTime = currTime;
}

Expand Down

0 comments on commit bd5793c

Please sign in to comment.