public void robotInit() { // instantiate the command used for the autonomous period autonomousCommand = new AutonomousCommand(); // Initialize all subsystems // VisionProcessing.getInstance(); Drivetrain.getInstance(); OI.getInstance(); Shifter.getInstance(); IntakeMotor.getInstance(); IntakePiston.getInstance(); Catapult.getInstance(); }
public void robotInit() { // chooser = new SendableChooser(); com = new Compressor(RobotMap.PCM_ID); oi = new OI(); drive = new DriveSubsystem(); intakeArm = new IntakeArmSubsystem(); intakeWheel = new IntakeWheelSubsystem(); climbPiston = new ClimbPistonSubsystem(); liftClimb = new LiftClimbSubsystem(); pushup = new PushupSubsystem(); oi.initButtonCommands(); driveChooser = new SendableChooser(); driveChooser.addDefault("Tedious Tank", new TankDriveCommand()); SmartDashboard.putData("Drive Chooser", driveChooser); // chooser.addDefault("No operation autonomous", new WaitCommand(1)); // chooser.addObject("Main Autonomous", new TimedAuto()); // chooser.addObject("High Speed Auto", new HighSpeedAuto()); // chooser.addObject("Sandwhich!", new SandwichCommand()); // SmartDashboard.putData("Autonomous chooser", chooser); // test.start(); }
// Called repeatedly when this Command is scheduled to run protected void execute() { Robot.driveTrain.slideDrive(OI.getForward(), OI.getStrafe()); }
/** Build the robot and call the OI building method */ public void robotInit() { arm = new Arm(); OI.init(); }
/** This function is called periodically during operator control */ public void teleopPeriodic() { Scheduler.getInstance().run(); drive.mecanumDrive_Cartesian( OI.Leftjoy().getX(), -1 * OI.Rightjoy().getX(), -1 * OI.Leftjoy().getY(), 0); // System.out.println("Teleop Periodic"); }