|
12 | 12 | import com.ctre.phoenix6.signals.InvertedValue;
|
13 | 13 | import com.ctre.phoenix6.signals.NeutralModeValue;
|
14 | 14 | import edu.wpi.first.math.geometry.Rotation2d;
|
15 |
| -import edu.wpi.first.math.trajectory.TrapezoidProfile; |
16 | 15 | import edu.wpi.first.wpilibj.simulation.SingleJointedArmSim;
|
17 | 16 |
|
18 | 17 | public final class PivotShooterConstants {
|
19 | 18 | // public static final double kSubWooferPreset = (3.5 + 0.3) / 138.33; // idk if
|
20 | 19 | // this works
|
21 | 20 | public static final double kSubWooferPreset = 3.4 / 138.33; // 3.2
|
22 | 21 | public static final double kFeederPreset = 5.9 / 138.33;
|
23 |
| - public static final double kAmpPreset = (4) / 138.33; |
24 |
| - public static final double kWingNoteCenterPreset = 5.8 / 138.33; |
25 |
| - public static final double kWingNoteSidePreset = |
26 |
| - 5.5 / 138.33; // old value: 5.7 distance: -1.5 //old ish?: 5.4 |
27 |
| - public static final double kWingNoteFarSidePreset = 0 / 138.33; |
28 |
| - public static final double kTrussSourceSidePreset = 6.7 / 138.33; // -10.6875 |
29 |
| - public static final double kHalfWingPodiumPreset = |
30 |
| - 6.55 / 138.33; // old value: 6.7 distance: -11.5275 |
31 |
| - public static final double kPodiumLeftPreset = 6.5 / 138.33; |
32 |
| - public static final double kPodiumRPreset = 6 / 138.33; |
33 | 22 |
|
34 | 23 | public static final int kPivotMotorID = 60;
|
35 | 24 |
|
36 | 25 | /* PID */
|
37 |
| - public static final TrapezoidProfile.Constraints kPivotProfileContraints = |
38 |
| - new TrapezoidProfile.Constraints(16, 16); |
39 |
| - |
40 |
| - /* Tolerance/threshold */ |
41 |
| - public static final double kPivotPositionToleranceDeg = 0.1; // 5deg for the pivot. |
42 |
| - public static final double kStallVelocityThreshold = 0.1; |
43 | 26 |
|
44 | 27 | /* Physics/geometry */
|
45 | 28 | public static final double kPivotMotorGearing = 138.333; // 22 by 1
|
46 |
| - public static final double kPivotLength = 0.2; |
47 |
| - public static final double kPivotMinAngleDeg = -90; |
48 |
| - public static final double kPivotMaxAngleDeg = 50; |
49 |
| - public static final double kPivotStartingAngleDeg = 0; |
50 |
| - public static final double jKgMetersSquared = 0.1; // for sim |
51 | 29 |
|
52 | 30 | /* Preset */
|
53 | 31 | public static final double kPivotSlamIntakeVoltage = -5;
|
54 | 32 | public static final double kPivotSlamShooterVoltage = -2;
|
55 | 33 |
|
56 | 34 | /* Misc */
|
57 |
| - public static final int kNumPivotMotors = 1; |
58 | 35 | public static final boolean kUseFOC = false;
|
59 | 36 | public static final boolean kUseMotionMagic = true; // idk
|
60 | 37 | public static final double updateFrequency = 50.0;
|
61 | 38 | public static final int flashConfigRetries = 5;
|
62 | 39 | public static final double kPivotSlamStallCurrent = 50;
|
63 | 40 |
|
64 |
| - public static final int kSpeakerAprilTagRed = 4; |
65 |
| - public static final int kSpeakerAprilTagBlue = 0; |
66 |
| - |
67 |
| - public static final int kSpeakerBackupAprilTagRed = 5; |
68 |
| - public static final int kSpeakerBackupAprilTagBlue = 1; |
69 |
| - |
70 | 41 | public static final TalonFXConfiguration motorConfigs =
|
71 | 42 | new TalonFXConfiguration()
|
72 | 43 | .withSlot0(
|
|
0 commit comments