PathGroupLoader.loadPathGroups();
// Load the auto command
try {
- PathPlannerAuto.getPathGroupFromAutoFile("Command Name");
- auto = new PathPlannerAuto("Path Name");
+ String leftSideAuto = "Left Side Auto";
+ PathPlannerAuto.getPathGroupFromAutoFile(leftSideAuto);
+ auto = new PathPlannerAuto(leftSideAuto);
} catch (IOException | ParseException e) {
e.printStackTrace();
}
LiveWindow.setEnabled(false);
SmartDashboard.putData("Shutdown Orange Pis", new ShutdownAllPis());
- autoChooserInit();
+ //autoChooserInit();
}
/**
if (intake != null && spindexer != null){
NamedCommands.registerCommand("Intake", new ParallelCommandGroup(
- new InstantCommand(()->intake.spin(IntakeConstants.SPEED)),
- new InstantCommand(()-> spindexer.setSpindexer(SpindexerConstants.spindexerMaxPower))
+ new InstantCommand(()->intake.spin(IntakeConstants.SPEED))
+ //new InstantCommand(()-> spindexer.setSpindexer(SpindexerConstants.spindexerMaxPower))
));
}