Package com.grt192.ui

Examples of com.grt192.ui.MapComponent


    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

  JFrame mainFrame = new JFrame("CannonBot - RPGController");

  public RobotUI(RobotModel rb) {
    this.rb = rb;
    mp = new MapComponent(rb);
    mainFrame.setSize(800, 600);
    mainFrame.add(mp, BorderLayout.CENTER);
    mainFrame.setVisible(true);
    mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  }
View Full Code Here

TOP

Related Classes of com.grt192.ui.MapComponent

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.