Skip to content

Commit

Permalink
no more paramaters for drive arm!
Browse files Browse the repository at this point in the history
  • Loading branch information
sofiebudman committed Mar 3, 2024
1 parent f3b27d0 commit 173787b
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 @@ -141,7 +141,7 @@ public void periodic() {


autoCancelArmCommand();
driveArm(goalState.position);
driveArm();
}


Expand All @@ -160,8 +160,8 @@ public void autoCancelArmCommand() {
}

//#region Drive Methods
private void driveArm(double goalAngle){
TrapezoidProfile.State goalState = new TrapezoidProfile.State(goalAngle, 0);
private void driveArm(){

TrapezoidProfile.State setPoint = armProfile.calculate(kDt, getCurrentArmState(), goalState);
double armFeedVolts = armFeed.calculate(goalState.position, goalState.velocity);
if ((getArmPos() < LOWER_ANGLE_LIMIT && getCurrentArmGoal().velocity > 0) || (getArmPos() > UPPER_ANGLE_LIMIT && getCurrentArmGoal().velocity > 0)){
Expand Down

0 comments on commit 173787b

Please sign in to comment.