Full Rework

- New SwerveModule subsystem
- Seperates everything out
- Untested
- VERY FUNKY
- Will need an hour or two to clean up and making usable beyond a basic test
This commit is contained in:
ryan123rudder
2021-12-16 21:48:59 -07:00
parent 6c99069847
commit 39f50feda4
5 changed files with 178 additions and 45 deletions
@@ -66,8 +66,8 @@ public class RobotContainer {
// drives the swerve drive with a two-axis input from the driver controller
m_robotSwerveDrive.setDefaultCommand(
new RunCommand(() -> m_robotSwerveDrive.driveWithInput(getDriverController().getRightXAxis(),
getDriverController().getRightYAxis(), getDriverController().getLeftXAxis()), m_robotSwerveDrive));
new RunCommand(() -> m_robotSwerveDrive.driveWithInput(getDriverController().getLeftXAxis(),
getDriverController().getLeftYAxis(), getDriverController().getRightXAxis(), false), m_robotSwerveDrive));
// continually sends updates to the Blinkin LED controller to keep the lights on
m_robotLED.setDefaultCommand(new RunCommand(() -> m_robotLED.updateLED(), m_robotLED));