Java 类edu.wpi.first.wpilibj.templates.commands.SpitOut 实例源码

项目:RKellyBot    文件:OI.java   
public OI(){
         LogDebugger.log("OI constructor");

//        btnA.whenPressed(new Lift());
//        btnB.whenPressed(new DeployLifter());
//        btnX.whenPressed(new StowArms());
//        btnLB.whenPressed(new PickUp());
//        btnLB.whenReleased(new CollectorDoNothing());
//        btnRB.whenActive(new SpitOut());
//        btnRB.whenInactive(new CollectorDoNothing());
        btnLT.whenPressed(new PickUp());
        btnLT.whenReleased(new CollectorDoNothing());
        btnRT.whenActive(new SpitOut());
        btnRT.whenInactive(new CollectorDoNothing());
        btnRB.whenReleased(new Shift());
        btnX.whenPressed(new DeployLifter());
        btnY.whenPressed(new Lift());
        btnB.whenPressed(new StowArms());
        btnLB.whenPressed(new ScaleShift());




        btnOtherA.whenPressed(new FlingerNormal());
        btnOtherB.whenPressed(new FlingerOff());
        btnOtherX.whenPressed(new FlingerPowerSavingMode());
        btnOtherY.whenPressed(new FlingerPyrimidSpeed());
        btnOtherRT.whenPressed(new Shoot());
//        btnOtherA.whenPressed(new LEDBlingControl(Bling.MARCH_RWB));
//        btnOtherB.whenPressed(new LEDBlingControl(Bling.METEOR));
//        btnOtherX.whenPressed(new LEDBlingControl(Bling.SHOOT));
//        btnOtherY.whenPressed(new LEDBlingControl(Bling.FADE_PG));
        btnOtherLB.whenPressed(new TiltUp());
        btnOtherLB.whenReleased(new TiltNormal());
        btnOtherRB.whenPressed(new TiltDown());
        btnOtherRB.whenReleased(new TiltNormal());

        bi1.whenPressed(new LEDBlingControl(Bling.MARCH_RWB));
        bi2.whenPressed(new LEDBlingControl(Bling.METEOR));
        bi3.whenPressed(new LEDBlingControl(Bling.SHOOT));
        bi4.whenPressed(new LEDBlingControl(Bling.FADE_PG));
        resetLocation.whenPressed(new ResetDeadReckoner());
        //commandTestLog.whenPressed(new LogCommand())

        //SmartDashboard.putData("Command Test Log", commandTestLog);
        SmartDashboard.putData("Reset Location", resetLocation);
        SmartDashboard.putData("MARCH_RWB", bi1);
        SmartDashboard.putData("METEOR", bi2);
        SmartDashboard.putData("SHOOT", bi3);
        SmartDashboard.putData("FADE_PG", bi4);
        SmartDashboard.putData("flinger Normal", new FlingerNormal());
        SmartDashboard.putData("flinger power saving mode", new FlingerPowerSavingMode());
        SmartDashboard.putData("Flinger off", new FlingerOff());
        SmartDashboard.putData("flinger Pyramid mode", new FlingerPyrimidSpeed());
    SmartDashboard.putData("Tune PID", new TunePID());


    }