Skip to content

Commit

Permalink
Started implementing extender step function
Browse files Browse the repository at this point in the history
 - Marz
  • Loading branch information
AraReighard committed Nov 27, 2023
1 parent f843639 commit 5a1b842
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/frc/robot/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,10 @@ public static class Arm {
public static final double SPEED_ARM_SHOULDER_HOMING = 0.5;
public static final double SPEED_ARM_BASE_HOMING = 0.5;

public static class StepThresholds {

}

public static class Intake {
public static final int ID_TALON_ARM_CLAW = 0; /* This is actually a Spark */
public static final double SPEED_ARM_CLAW = 1;
Expand Down
6 changes: 6 additions & 0 deletions src/main/java/frc/robot/subsystems/arm/ArmExtender.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ public boolean isExtenderAtSetpoint() {
return extenderAtSetpoint;
}

private double extenderCompensatedFeedForward(ArmExtender armExtender) {
if (armExtender.getLength() >= )
}

/**
* Directs arm towards setpoint. Since this is the periodic method, this is called every time the
* scheduler runs.
Expand All @@ -104,6 +108,8 @@ public void periodic() {
if (percentOutput != null) {
winch.set(rateLimiter.calculate(percentOutput));
}

System.out.println("Extender length: " + getLength());
}

public void setArmSpeed(double speed) {
Expand Down

0 comments on commit 5a1b842

Please sign in to comment.