Examples of GRTSwitch


Examples of com.grt192.sensor.GRTSwitch

    tankBSolenoid.start();

    this.tankSelectorSolenoid = tankselecsol;
    tankSelectorSolenoid.start();

    this.fireSwitch = new GRTSwitch(3, 9, "fireswitch");
    fireSwitch.start();

    this.cannonCompressor = compressor;
    if(!compressor.isStarted())
      cannonCompressor.startCompressor();
View Full Code Here

Examples of com.grt192.sensor.GRTSwitch

        switchID = "Switch" + switchPin;
        solenoidID = "Solenoid" + solPin;

        solenoid = new GRTSolenoid(solPin);
        sswitch = new GRTSwitch(switchPin, 50, switchID);

//        this.extended = true;
        init();
    }
View Full Code Here

Examples of com.grt192.sensor.GRTSwitch

   
    public BenchKicker(int port, int limiter, boolean debug){
        motor = new GRTJaguar(port);
        motor.start();
        addActuator("Motor", motor);
        limit = new GRTSwitch(limiter, 25, "kickLimit");
        limit.start();
        addSensor("switch", limit);
        this.debug = debug;
    }
View Full Code Here

Examples of com.grt192.sensor.GRTSwitch

        mySwitch = (GRTSwitch) hhm.getSensor(switchID);
        mySwitch.addSwitchListener(this);

        //TODO fix instantiation of switches in this control
        if (masterSwitch == null) {
            masterSwitch = new GRTSwitch(9, 50, "MasterButton");
            autoSwitch = new GRTSwitch(10, 50, "AutoButton");

            masterSwitch.start();
            autoSwitch.start();
        }
View Full Code Here

Examples of com.grt192.sensor.GRTSwitch

    private GRTSwitch pressureSwitch;
   
    private boolean started;

    public GRTCompressor(int powerChannel, int switchChannel) {
        this(new GRTRelay(powerChannel), new GRTSwitch(switchChannel, 5));
    }
View Full Code Here

Examples of com.grt192.sensor.GRTSwitch

    // analog inputs
    GRTPotentiometer batterySensor = new GRTPotentiometer(7, 50,
        "batteryVoltage");
                GRTGyro gyro = new GRTGyro(1, 15, "BaseGyro");
    // digital inputs
    GRTSwitch kickerSwitch = new GRTSwitch(1, 5, "KickLimit");
    GRTSwitch recoveryUpSwitch = new GRTSwitch(2, 50, "RecoveryUp");
    GRTSwitch recoveryGroundSwitch = new GRTSwitch(7, 50, "RecoveryDown");
    System.out.println("Switches Initialized");

    // Mechanisms
    robotbase = new GRTBreakawayRobotBase(leftDT1, leftDT2, rightDT1,
        rightDT2, batterySensor, gyro);
View Full Code Here

Examples of com.grt192.sensor.GRTSwitch

    private GRTSwitch autoButton;

    public HHLEDMechanism() {

        //initialize actuators and sensors
        masterButton = new GRTSwitch(MASTER_BUTTON_PIN, 50);
        autoButton = new GRTSwitch(AUTO_BUTTON_PIN, 50);
        masterLED = new GRTLED(MASTER_LED_PIN);
        autoLED = new GRTLED(AUTO_LED_PIN);

        //add actuators and sensors
        addSensor(MASTER_BUTTON_ID, masterButton);
View Full Code Here

Examples of com.grt192.sensor.GRTSwitch

        getActuator("Arm").start();

        addSensor("Gyro", new GRTGyro(gyroPort, 50, "armGyro"));
        getSensor("Gyro").start();
        for(int i = 1; i <= NUM_OF_SWITCH; i++) {
            addSensor("Switch" + i, new GRTSwitch(switchPorts[i], 25));
            getSensor("Swicth" + i).start();
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.