Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…Code2024 into sofie-arm
  • Loading branch information
stwiggy committed Mar 3, 2024
2 parents 814cd64 + 67be12a commit 09e2322
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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 @@ -25,7 +25,7 @@ public class ArmTeleop extends Command {
private final DoubleSupplier joystick;
private final Arm armSubsystem;
private double lastTime = 0;
private Timer armTimer = new Timer();

TrapezoidProfile.State goalState;
/** Creates a new ArmTeleop. */
public ArmTeleop(Arm armSubsystem, DoubleSupplier joystickSupplier) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/carlmontrobotics/subsystems/Arm.java
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public void autoCancelArmCommand() {
}

//#region Drive Methods
public void driveArm(double goalAngle){
private void driveArm(double goalAngle){
TrapezoidProfile.State goalState = new TrapezoidProfile.State(goalAngle, 0);
TrapezoidProfile.State setPoint = armProfile.calculate(kDt, getCurrentArmState(), goalState);
double armFeedVolts = armFeed.calculate(goalState.velocity, 0);
Expand Down

0 comments on commit 09e2322

Please sign in to comment.