Package com.grt192.networking

Examples of com.grt192.networking.SocketListener


        System.out.println("Running Base2012: xbox drive");

       
        // Driver station components
        GRTXboxController primary = new GRTXboxController(1, 12, "primary");
        GRTXboxController secondary = null; //new GRTXboxController(2, 12, "secondary");
        System.out.println("Joysticks Initialized");

        // PWM outputs
        GRTVictor leftDT1 = new GRTVictor(4);
View Full Code Here


    leftJaguar.start();

    this.rightJaguar = rfjaguar;
    rightJaguar.start();

    this.leftEncoder = new GRTJagEncoder(lfjaguar, 5, "ljagencoder");

    this.rightEncoder = new GRTJagEncoder(rfjaguar, 5, "rjagencoder");

    this.canGyro = canGyro;
    leftEncoder.addEncoderListener(this);
    rightEncoder.addEncoderListener(this);
    canGyro.addGyroListener(this);
View Full Code Here

     *
     * @return
     */
    public GRTJagEncoder getEncoder() {
        if (encoder == null) {
            encoder = new GRTJagEncoder(this, 25, "Encoder" + this);
            encoder.start();
        }
        return encoder;
    }
View Full Code Here

     * Gets the encoder wired to the control IO on this CANJaguar.
     * @return
     */
    synchronized public GRTJagEncoder getEncoder() {
        if (encoder == null) {
            encoder = new GRTJagEncoder(this, 25, "Encoder" + this);
            encoder.start();
        }
        return encoder;
    }
View Full Code Here

     * Gets a fault sensor, which polls the Jaguar for faults
     * @return a fault sensor
     */
    synchronized public GRTJagFaultSensor getFaultSensor() {
        if (faultSensor == null) {
            faultSensor = new GRTJagFaultSensor(this, 50, "FaultSensor" + this);
            faultSensor.start();
        }
        return faultSensor;

    }
View Full Code Here

     * @return
     */
    synchronized public GRTJagPotentiometer getPotentiometer() {
        if (potentiometer == null) {
            potentiometer =
                    new GRTJagPotentiometer(this, 25, "Potentiometer" + this);
            potentiometer.start();
        }
        return potentiometer;
    }
View Full Code Here

     *
     * @return
     */
    public GRTJagPowerSensor getPowerSensor() {
        if (powerSensor == null) {
            powerSensor = new GRTJagPowerSensor(this, 50, "PowerSensor" + this);
            powerSensor.start();
        }
        return powerSensor;
    }
View Full Code Here

     * Gets a power sensor associated with this CANJaguar
     * @return
     */
    synchronized public GRTJagPowerSensor getPowerSensor() {
        if (powerSensor == null) {
            powerSensor = new GRTJagPowerSensor(this, 50, "PowerSensor" + this);
            powerSensor.start();
        }
        return powerSensor;
    }
View Full Code Here

     *
     * @return
     */
    public GRTJagSwitch getSwitches() {
        if (switches == null) {
            switches = new GRTJagSwitch(this, 5, "Switch" + this);
            switches.start();
        }
        return switches;
    }
View Full Code Here

     * Returns a switch-pair sensor.
     * @return
     */
    synchronized public GRTJagSwitchPair getSwitches() {
        if (switches == null) {
            switches = new GRTJagSwitchPair(this, 5, "Switch" + this);
            switches.start();
        }
        return switches;
    }
View Full Code Here

TOP

Related Classes of com.grt192.networking.SocketListener

Copyright © 2018 www.massapicom. 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.