-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
527 additions
and
487 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/main/java/org/littletonrobotics/frc2024/subsystems/flywheels/FlywheelConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package org.littletonrobotics.frc2024.subsystems.flywheels; | ||
|
||
import org.littletonrobotics.frc2024.Constants; | ||
|
||
public class FlywheelConstants { | ||
public static Config config = | ||
switch (Constants.getRobot()) { | ||
case COMPBOT -> null; | ||
case DEVBOT -> new Config(5, 4, (1.0 / 2.0), 100.0); | ||
case SIMBOT -> new Config(0, 0, (1.0 / 2.0), 100.0); | ||
}; | ||
|
||
public static Gains gains = | ||
switch (Constants.getRobot()) { | ||
case COMPBOT -> null; | ||
case DEVBOT -> new Gains(0.0006, 0.0, 0.05, 0.33329, 0.00083, 0.0); | ||
case SIMBOT -> new Gains(0.0, 0.0, 0.0, 0.09078, 0.00103, 0.0); | ||
}; | ||
|
||
public record Config(int leftID, int rightID, double reduction, double toleranceRPM) {} | ||
|
||
public record Gains(double kP, double kI, double kD, double kS, double kV, double kA) {} | ||
} |
Oops, something went wrong.