Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

Commit

Permalink
idiot
Browse files Browse the repository at this point in the history
  • Loading branch information
carokhan committed Oct 24, 2024
1 parent 0633ff8 commit 8366522
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
10 changes: 5 additions & 5 deletions src/main/java/frc/robot/BuildConstants.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ public final class BuildConstants {
public static final String MAVEN_GROUP = "";
public static final String MAVEN_NAME = "Forte-2-5";
public static final String VERSION = "unspecified";
public static final int GIT_REVISION = 89;
public static final String GIT_SHA = "5eb048c58fec65b3f00463e715a48f1dd720a332";
public static final String GIT_DATE = "2024-10-23 06:52:00 EDT";
public static final int GIT_REVISION = 90;
public static final String GIT_SHA = "0633ff8fb4db72688603eca20c002bee66f45e75";
public static final String GIT_DATE = "2024-10-23 19:32:07 EDT";
public static final String GIT_BRANCH = "main";
public static final String BUILD_DATE = "2024-10-23 19:29:37 EDT";
public static final long BUILD_UNIX_TIME = 1729726177390L;
public static final String BUILD_DATE = "2024-10-24 07:54:58 EDT";
public static final long BUILD_UNIX_TIME = 1729770898939L;
public static final int DIRTY = 1;

private BuildConstants() {}
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/frc/robot/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,8 @@ public static class ShooterConstants {

public static final int pivotCurrentLimit = 15;

public static final double kGPivot = 0.38;
public static final double kVPivot = 0.8;
public static final double kGPivot = 0.381640625;
public static final double kVPivot = 0.875;
public static final double kAPivot = 0.00;

public static final double kVShooter = 0.0055; // COMP: 0.0055, DEMO: 0.0041875
Expand All @@ -292,7 +292,7 @@ public static class ShooterConstants {
public static final double kIShooterReal = 0.00000;
public static final double kSShooterReal = 0;

public static final double kPPivot = 3.0;
public static final double kPPivot = 2.0;

public static final double kPShooterSim = 0.5;
public static final double kIShooterSim = 0.0;
Expand Down
8 changes: 5 additions & 3 deletions src/main/java/frc/robot/subsystems/pivot2/Pivot.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,11 @@ public Command setPivotTarget(DoubleSupplier radians) {
return this.run(
() -> {
double volts =
pivotPID.calculate(inputs.pivotPosition.getRadians(), radians.getAsDouble());
// + pivotFF.calculate(
// pivotPID.getSetpoint().position, pivotPID.getSetpoint().velocity);
pivotPID.calculate(
inputs.pivotPosition.getRadians(),
radians.getAsDouble()
+ pivotFF.calculate(
pivotPID.getSetpoint().position, pivotPID.getSetpoint().velocity));

io.setPivotVoltage(volts);
inputs.pivotAppliedVolts = volts;
Expand Down

0 comments on commit 8366522

Please sign in to comment.