Skip to content

Commit

Permalink
updates from Dripping Springs
Browse files Browse the repository at this point in the history
  • Loading branch information
SpectrumFRC3847 committed Mar 8, 2022
1 parent 49de5f4 commit f05f250
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
Binary file modified .gradle/file-system.probe
Binary file not shown.
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/constants/AutonConstants.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import edu.wpi.first.math.trajectory.TrapezoidProfile;

public final class AutonConstants {
public static final double pos1angle = 92;
public static final double pos1angle = 160;
public static final double pos2angle = 120;
public static final double pos3angle = 270;

Expand Down
13 changes: 6 additions & 7 deletions src/main/java/frc/robot/constants/ClimberConstants.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
public final class ClimberConstants{
public static final String name = "Climber";

public static final int fullExtend = 112000;
public static final int fullExtend = 118000;
public static final int nextRungExtend = 98000;
public static final int fullRetract = -2000;

Expand Down Expand Up @@ -52,15 +52,15 @@ public final class ClimberConstants{
public static final double motionAcceleration = 20000;

/* Current Limiting */
public static final int currentLimit = 30;
public static final int tirggerThresholdLimit = 35;
public static final double PeakCurrentDuration = 0.3;
public static final int currentLimit = 40;
public static final int tirggerThresholdLimit = 40;
public static final double PeakCurrentDuration = 0.5;
public static final boolean EnableCurrentLimit = true;
public static final SupplyCurrentLimitConfiguration supplyLimit = new SupplyCurrentLimitConfiguration(
EnableCurrentLimit, currentLimit, tirggerThresholdLimit, PeakCurrentDuration);

public static final StatorCurrentLimitConfiguration statorLimit = new StatorCurrentLimitConfiguration(
EnableCurrentLimit, currentLimit, tirggerThresholdLimit, PeakCurrentDuration);
/*public static final StatorCurrentLimitConfiguration statorLimit = new StatorCurrentLimitConfiguration(
EnableCurrentLimit, currentLimit, tirggerThresholdLimit, PeakCurrentDuration);*/

/* Voltage Compensation */
public static final double voltageCompSaturation = 12;
Expand Down Expand Up @@ -88,7 +88,6 @@ private ClimberConstants(){
config.motionAcceleration = motionAcceleration;

config.supplyCurrLimit = supplyLimit;
config.statorCurrLimit = statorLimit;
config.openloopRamp = openLoopRamp;
config.closedloopRamp = closedLoopRamp;
config.voltageCompSaturation = voltageCompSaturation;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/subsystems/Climber.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ public Climber() {
setName(ClimberConstants.name);
motorLeader = new WPI_TalonFX(CanIDs.kClimberMotorLeft, Constants.Canivorename);
ClimberConstants.setupFalconLeader(motorLeader);

motorFollower = new WPI_TalonFX(CanIDs.kClimberMotorRight, Constants.Canivorename);
ClimberConstants.setupFalconFollower(motorFollower, motorLeader);


resetEncoder();
motorLeader.configForwardSoftLimitThreshold(ClimberConstants.fullExtend);
motorLeader.configForwardSoftLimitEnable(false);
Expand Down

0 comments on commit f05f250

Please sign in to comment.