|
8 | 8 | import edu.wpi.first.wpilibj2.command.Command;
|
9 | 9 | import edu.wpi.first.wpilibj2.command.Commands;
|
10 | 10 | import edu.wpi.first.wpilibj2.command.button.CommandXboxController;
|
| 11 | + |
| 12 | + |
11 | 13 | import org.team1540.robot2024.commands.FeedForwardCharacterization;
|
12 | 14 | import org.team1540.robot2024.commands.SwerveDriveCommand;
|
13 | 15 | import org.team1540.robot2024.subsystems.drive.*;
|
14 | 16 | import org.team1540.robot2024.util.swerve.SwerveFactory;
|
15 | 17 | import org.littletonrobotics.junction.networktables.LoggedDashboardChooser;
|
16 | 18 |
|
| 19 | +import static org.team1540.robot2024.Constants.SwerveConfig; |
17 | 20 |
|
18 | 21 | /**
|
19 | 22 | * This class is where the bulk of the robot should be declared. Since Command-based is a
|
@@ -42,10 +45,10 @@ public RobotContainer() {
|
42 | 45 | drivetrain =
|
43 | 46 | new Drivetrain(
|
44 | 47 | new GyroIONavx(),
|
45 |
| - new ModuleIOTalonFX(SwerveFactory.getModuleMotors(3, SwerveFactory.SwerveCorner.FRONT_LEFT)), |
46 |
| - new ModuleIOTalonFX(SwerveFactory.getModuleMotors(4, SwerveFactory.SwerveCorner.FRONT_RIGHT)), |
47 |
| - new ModuleIOTalonFX(SwerveFactory.getModuleMotors(7, SwerveFactory.SwerveCorner.BACK_LEFT)), |
48 |
| - new ModuleIOTalonFX(SwerveFactory.getModuleMotors(1, SwerveFactory.SwerveCorner.BACK_RIGHT))); |
| 48 | + new ModuleIOTalonFX(SwerveFactory.getModuleMotors(SwerveConfig.FRONT_LEFT, SwerveFactory.SwerveCorner.FRONT_LEFT)), |
| 49 | + new ModuleIOTalonFX(SwerveFactory.getModuleMotors(SwerveConfig.FRONT_RIGHT, SwerveFactory.SwerveCorner.FRONT_RIGHT)), |
| 50 | + new ModuleIOTalonFX(SwerveFactory.getModuleMotors(SwerveConfig.BACK_LEFT, SwerveFactory.SwerveCorner.BACK_LEFT)), |
| 51 | + new ModuleIOTalonFX(SwerveFactory.getModuleMotors(SwerveConfig.BACK_RIGHT, SwerveFactory.SwerveCorner.BACK_RIGHT))); |
49 | 52 | break;
|
50 | 53 |
|
51 | 54 | case SIM:
|
|
0 commit comments