Skip to content

Commit

Permalink
final qual for saturday
Browse files Browse the repository at this point in the history
  • Loading branch information
cherriae committed Oct 19, 2024
1 parent 9f5b24b commit 5130512
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public static class Speeds {
public static final double SHOOTER_IDLE_SPEED = 0.3;

public static final double SHOOTER_ANGLE_MAX_SPEED = 0.3;
public static final double ELEVATOR_MAX_SPEED = 1;
public static final double ELEVATOR_MAX_SPEED = 0.6;

public static final double INTAKE_FEED_SPEED = 0.6;
public static final double OUTTAKE_FEED_SPEED = -0.4;
Expand Down
16 changes: 16 additions & 0 deletions src/main/java/frc/robot/subsystems/ElevatorSubsystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,22 @@ public void driveElevator(double speed) {
// _leftMotor.set(ff + speed);
}

public void operateElevator(double speed) {
double ff = 0;

if (_usingClimberFeed)
// ff = _climbFeed.calculate(speed);
ff = _climbFeed.calculate(0);
else {
// ff = _elevatorFeed.calculate(speed);
ff = _elevatorFeed.calculate(speed);
}

ff = UtilFuncs.FromVolts(ff);

_leftMotor.set(ff + speed);
}

/** Stops elevator movement. */
public void stopElevator() {
driveElevator(0);
Expand Down

0 comments on commit 5130512

Please sign in to comment.