case WaffleHouse: // AKA Betabot
turret = new Turret();
shooter = new Shooter();
- //hood = new Hood();
+ // hood = new Hood();
case SwerveCompetition: // AKA "Vantage"
// Detected objects need access to the drivetrain
DetectedObject.setDrive(drive);
-
+
// SignalLogger.start();
driver.configureControls();
operator.configureControls();
-
+
initializeAutoBuilder();
registerCommands();
PathGroupLoader.loadPathGroups();
}
drive.setDefaultCommand(new DefaultDriveCommand(drive, driver));
break;
- }
+ }
// This is really annoying so it's disabled
DriverStation.silenceJoystickConnectionWarning(true);
+ SmartDashboard.putString("RobotId", RobotId.getRobotId().name());
+
// TODO: verify this claim.
// LiveWindow is causing periodic loop overruns
LiveWindow.disableAllTelemetry();
drive.setVisionEnabled(enabled);
}
-
public void initializeAutoBuilder() {
AutoBuilder.configure(
() -> drive.getPose(),
}
public boolean brownout() {
- if(RobotController.getBatteryVoltage() < 6.0) {
+ if (RobotController.getBatteryVoltage() < 6.0) {
return true;
- }
- else {
+ } else {
return false;
}
}
- public Command getAutoCommand(){
+ public Command getAutoCommand() {
return auto;
}
- public void logComponents(){
- if(!Constants.LOG_MECHANISMS) return;
-
+ public void logComponents() {
+ if (!Constants.LOG_MECHANISMS)
+ return;
+
Logger.recordOutput(
- "ComponentPoses",
- new Pose3d[] {
+ "ComponentPoses",
+ new Pose3d[] {
// Subsystem Pose3ds
- }
- );
+ });
}
}
-
-