Convert RobotTime into a singleton

This commit is contained in:
Keenan D. Buckley
2020-03-28 21:42:08 -06:00
parent 850f503889
commit e373211f27
5 changed files with 43 additions and 26 deletions
+4 -5
View File
@@ -25,15 +25,14 @@ import frc4388.utility.RobotGyro;
public class RobotMap {
public RobotMap() {
configureLEDSubsystem();
configureDriveSubsystem();
configureLEDMotorControllers();
configureDriveMotorControllers();
}
/* LED Subsystem */
public final Spark LEDController = new Spark(LEDConstants.LED_SPARK_ID);
void configureLEDSubsystem() {
void configureLEDMotorControllers() {
}
/* Drive Subsystem */
@@ -44,7 +43,7 @@ public class RobotMap {
public final DifferentialDrive driveTrain = new DifferentialDrive(leftFrontMotor, rightFrontMotor);
public final RobotGyro gyroDrive = new RobotGyro(new PigeonIMU(DriveConstants.DRIVE_PIGEON_ID));
void configureDriveSubsystem() {
void configureDriveMotorControllers() {
/* factory default values */
leftFrontMotor.configFactoryDefault();