예제 #1
0
  public IO() {
    // BALLISTA CONTROLS
    /*
     * Position
     */
    buttonP2.whenPressed(new EnablePickupPosition(1.0));
    buttonP3.whenPressed(new EnableShootingPosition(1.0));
    buttonP9.whenPressed(new EnableTrussPosition(1.0));
    buttonP8.whenPressed(new DisableInitPosition(1.0));

    /*
     * Shooting
     */
    buttonP11.whenPressed(new PrepareShot());
    buttonP10.whenPressed(new EnableInitPosition(1.0));
    buttonP1.whenPressed(new BallistaFireBall());

    /*
     * Pickup
     */
    buttonP6.whileHeld(new GrabBall());
    buttonP7.whenPressed(new HoldBall(1.0));

    // DEBUG ON LEFT JOYSTICK
    buttonL7.whenPressed(new PinHold(1.0));
    buttonL6.whenPressed(new PinRelease(1.0));

    buttonL10.whenPressed(new PrepareShotNoPinRelease());
    buttonL11.whenPressed(new Release(2.0));
  }
예제 #2
0
파일: OI.java 프로젝트: Team1065/FRC-2013
 public OI() {
   ds = DriverStation.getInstance().getEnhancedIO();
   shooterFeedbackEnableButton.whileHeld(new ShootingWithFeedback());
 }