@@ -131,6 +131,14 @@ public static final class DriveConstants {
131131 public static final LoggedTunableNumber kMeshDrivePriority =
132132 new LoggedTunableNumber ("Meshed Drive Priority" , 0.3 );
133133
134+ public static final LoggedTunableNumber kDriveP = new LoggedTunableNumber ("Drive P" , 0.0 );
135+ public static final LoggedTunableNumber kDriveI = new LoggedTunableNumber ("Drive I" , 0.0 );
136+ public static final LoggedTunableNumber kDriveD = new LoggedTunableNumber ("Drive D" , 0.0 );
137+
138+ public static final LoggedTunableNumber kTurnP = new LoggedTunableNumber ("Drive Turn P" , 3.0 );
139+ public static final LoggedTunableNumber kTurnI = new LoggedTunableNumber ("Drive Turn I" , 0.0 );
140+ public static final LoggedTunableNumber kTurnD = new LoggedTunableNumber ("Drive Turn D" , 0.0 );
141+
134142 public static final LoggedTunableNumber kAutoscoreDeployDistance =
135143 new LoggedTunableNumber ("Autoscore Deploy Distance" , 42.0 );
136144 public static final LoggedTunableNumber kAutoscoreOuttakeDistance =
@@ -157,37 +165,38 @@ public static final class ShooterConstants {
157165 public static final LoggedTunableNumber kIdleVoltage =
158166 new LoggedTunableNumber ("Shooter idleVoltage" , 0.0 );
159167 public static final LoggedTunableNumber kTopRPS =
160- new LoggedTunableNumber ("Shooter topRPM " , 20.0 );
168+ new LoggedTunableNumber ("Shooter topRPS " , 20.0 );
161169 public static final LoggedTunableNumber kBottomRPS =
162- new LoggedTunableNumber ("Shooter bottomRPM " , 85.0 );
170+ new LoggedTunableNumber ("Shooter bottomRPS " , 85.0 );
163171 public static final LoggedTunableNumber kRejectingVoltage =
164- new LoggedTunableNumber ("Shooter rejectingVoltage" , 7 .0 );
172+ new LoggedTunableNumber ("Shooter rejectingVoltage" , 4 .0 );
165173 public static final LoggedTunableNumber kTopAmpVelocity =
166174 new LoggedTunableNumber ("Shooter topAmpVelocity" , -3.5 );
167175 public static final LoggedTunableNumber kBottomAmpVelocity =
168176 new LoggedTunableNumber ("Shooter bottomAmpVelocity" , 58.0 );
169177
170178 public static final LoggedTunableNumber kTopShooterP =
171- new LoggedTunableNumber ("Shooter TopP" , 0.0 );
179+ new LoggedTunableNumber ("Shooter TopP" , 0.005 );
172180 public static final LoggedTunableNumber kTopShooterI =
173181 new LoggedTunableNumber ("Shooter TopI" , 0.0 );
174182 public static final LoggedTunableNumber kTopShooterD =
175183 new LoggedTunableNumber ("Shooter TopD" , 0.0 );
176184 public static final LoggedTunableNumber kBottomShooterP =
177- new LoggedTunableNumber ("Shooter BottomP" , 0.0 );
185+ new LoggedTunableNumber ("Shooter BottomP" , 0.005 );
178186 public static final LoggedTunableNumber kBottomShooterI =
179187 new LoggedTunableNumber ("Shooter BottomI" , 0.0 );
180188 public static final LoggedTunableNumber kBottomShooterD =
181189 new LoggedTunableNumber ("Shooter BottomD" , 0.0 );
182190
183- public static final LoggedTunableNumber kTopKs = new LoggedTunableNumber ("Shooter TopKs" , 0.0 );
184- public static final LoggedTunableNumber kTopKv = new LoggedTunableNumber ("Shooter TopKv" , 0.0 );
191+ public static final LoggedTunableNumber kTopKs = new LoggedTunableNumber ("Shooter TopKs" , 0.14 );
192+ public static final LoggedTunableNumber kTopKv =
193+ new LoggedTunableNumber ("Shooter TopKv" , 0.125 );
185194 public static final LoggedTunableNumber kBottomKs =
186- new LoggedTunableNumber ("Shooter BottomKs" , 0.0 );
195+ new LoggedTunableNumber ("Shooter BottomKs" , 0.14 );
187196 public static final LoggedTunableNumber kBottomKv =
188- new LoggedTunableNumber ("Shooter BottomKv" , 0.0 );
197+ new LoggedTunableNumber ("Shooter BottomKv" , 0.125 );
189198
190- public static final double kVelocityTolerance = 0.1 ; // in RPM
199+ public static final double kVelocityTolerance = 0.1 ;
191200
192201 // sim
193202 public static final DCMotor kTopDCMotor = DCMotor .getNEO (1 );
@@ -223,11 +232,11 @@ public static final class IndexerConstants {
223232 public static final LoggedTunableNumber kIdleVoltage =
224233 new LoggedTunableNumber ("Indexer idleVoltage" , 0.0 );
225234 public static final LoggedTunableNumber kIntakingVoltage =
226- new LoggedTunableNumber ("Indexer intakingVoltage" , 12 .0 );
235+ new LoggedTunableNumber ("Indexer intakingVoltage" , - 6 .0 );
227236 public static final LoggedTunableNumber kShootingVoltage =
228- new LoggedTunableNumber ("Indexer shootingVoltage" , 8.0 );
237+ new LoggedTunableNumber ("Indexer shootingVoltage" , - 8.0 );
229238 public static final LoggedTunableNumber kVomitVoltage =
230- new LoggedTunableNumber ("Indexer vomitVoltage" , - 8 .0 );
239+ new LoggedTunableNumber ("Indexer vomitVoltage" , 6 .0 );
231240
232241 // sim
233242 public static final DCMotor kDCMotor = DCMotor .getNEO (1 );
@@ -239,9 +248,9 @@ public static final class IntakeConstants {
239248 public static final LoggedTunableNumber kIdleVoltage =
240249 new LoggedTunableNumber ("Intake idleVoltage" , 0.0 );
241250 public static final LoggedTunableNumber kIntakingVoltage =
242- new LoggedTunableNumber ("Intake intakingVoltage" , 10 .0 );
251+ new LoggedTunableNumber ("Intake intakingVoltage" , - 6 .0 );
243252 public static final LoggedTunableNumber kVomitVoltage =
244- new LoggedTunableNumber ("Intake vomitVoltage" , - 8 .0 );
253+ new LoggedTunableNumber ("Intake vomitVoltage" , 7 .0 );
245254
246255 // sim
247256 public static final DCMotor kDCMotor = DCMotor .getNEO (1 );
@@ -250,32 +259,33 @@ public static final class IntakeConstants {
250259 }
251260
252261 public static final class Ports {
253- public static final int kFrontLeftDrive = 0 ;
254- public static final int kFrontLeftTurn = 1 ;
255- public static final int kFrontLeftCancoder = 2 ;
262+ public static final int kFrontLeftDrive = 1 ;
263+ public static final int kFrontLeftTurn = 2 ;
264+ public static final int kFrontLeftCancoder = 3 ;
256265
257- public static final int kFrontRightDrive = 3 ;
258- public static final int kFrontRightTurn = 4 ;
259- public static final int kFrontRightCancoder = 5 ;
266+ public static final int kFrontRightDrive = 4 ;
267+ public static final int kFrontRightTurn = 5 ;
268+ public static final int kFrontRightCancoder = 6 ;
260269
261- public static final int kBackLeftDrive = 6 ;
262- public static final int kBackLeftTurn = 7 ;
263- public static final int kBackLeftCancoder = 8 ;
270+ public static final int kBackLeftDrive = 7 ;
271+ public static final int kBackLeftTurn = 8 ;
272+ public static final int kBackLeftCancoder = 9 ;
264273
265- public static final int kBackRightDrive = 9 ;
266- public static final int kBackRightTurn = 10 ;
267- public static final int kBackRightCancoder = 11 ;
274+ public static final int kBackRightDrive = 10 ;
275+ public static final int kBackRightTurn = 11 ;
276+ public static final int kBackRightCancoder = 12 ;
268277
269- public static final int kIndexer = 12 ;
270- public static final int kPhotoelectric1 = 13 ;
271- public static final int kPhotoelectric2 = 14 ;
278+ public static final int kPigeon = 22 ;
272279
273- public static final int kIntake = 15 ;
280+ public static final String kCanivoreName = "Drivetrain" ;
274281
275- public static final int kTopShooter = 16 ;
276- public static final int kBottomShooter = 17 ;
282+ public static final int kIntakeNeo = 13 ;
283+ public static final int kIndexerNeo = 14 ;
284+ public static final int kTopFlywheel = 15 ;
285+ public static final int kBottomFlywheel = 16 ;
277286
278- public static final int kPigeon = 22 ;
287+ public static final int kPhotoElectricOne = 8 ;
288+ public static final int kPhotoElectricTwo = 9 ;
279289
280290 public static final String kDriveCanivoreName = "Drivetrain" ;
281291
0 commit comments