edu.wpi.first.wpilibj.templates.commands.Shoot的实例源码

项目: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());


    }

相关文章

买水果
比较全面的redis工具类
gson 反序列化到多态子类
java 版本的 mb_strwidth
JAVA 反转字符串的最快方法,大概比StringBuffer.reverse()性...
com.google.gson.internal.bind.ArrayTypeAdapter的实例源码...