예제 #1
0
  public ManualDriveCommand() {
    // Use requires() here to declare subsystem dependencies
    drivetrain = Drivetrain.getInstance();
    requires(drivetrain);

    this.joystick = OI.getInstance().rightStick;
  }
예제 #2
0
 // Called once after isFinished returns true
 protected void end() {
   drivetrain.stop();
 }
예제 #3
0
 // Called repeatedly when this Command is scheduled to run
 protected void execute() {
   drivetrain.drive(joystick);
 }