Package com.grt192.controller.cannonbot

Examples of com.grt192.controller.cannonbot.TargetController


    }

    protected void notifyGyroChange() {
        for (int i = 0; i < gyroListeners.size(); i++) {
            ((GyroListener) gyroListeners.elementAt(i)).didAngleChange(
                    new GyroEvent(this,
                    GyroEvent.DEFAULT,
                    getState("Angle")));
        }
    }
View Full Code Here


    }

    protected void notifyGyroListeners() {
        for (int i = 0; i < gyroListeners.size(); i++) {
            ((GyroListener) gyroListeners.elementAt(i)).didReceiveAngle(
                    new GyroEvent(this,
                    GyroEvent.DEFAULT,
                    getState("Angle")));
        }
    }
View Full Code Here

  }

  protected void notifyEncoderChange() {
    for (int i = 0; i < encoderListeners.size(); i++) {
      ((JagEncoderListener) encoderListeners.elementAt(i))
          .countDidChange(new JagEncoderEvent(this,
              EncoderEvent.DEFAULT, getState("Distance"),
              (getState("Direction") == Sensor.TRUE)));
    }
  }
View Full Code Here

  }

  protected void notifyEncoderStarted() {
    for (int i = 0; i < encoderListeners.size(); i++) {
      ((JagEncoderListener) encoderListeners.elementAt(i))
          .rotationDidStart(new JagEncoderEvent(this,
              EncoderEvent.DEFAULT, getState("Distance"),
              (getState("Direction") == Sensor.TRUE)));
    }
  }
View Full Code Here

  }

  protected void notifyEncoderStopped() {
    for (int i = 0; i < encoderListeners.size(); i++) {
      ((JagEncoderListener) encoderListeners.elementAt(i))
          .rotationDidStop(new JagEncoderEvent(this,
              EncoderEvent.DEFAULT, getState("Distance"),
              (getState("Direction") == Sensor.TRUE)));
    }
  }
View Full Code Here

  }

  protected void notifyDirectionChanged() {
    for (int i = 0; i < encoderListeners.size(); i++) {
      ((JagEncoderListener) encoderListeners.elementAt(i))
          .rotationDidStop(new JagEncoderEvent(this,
              EncoderEvent.DEFAULT, getState("Distance"),
              (getState("Direction") == Sensor.TRUE)));
    }
  }
View Full Code Here

    }

    /** Notifies all <code>JagEncoderListener</code>s that the count has changed */
    protected void notifyEncoderChange() {
        for (int i = 0; i < encoderListeners.size(); i++) {
            ((JagEncoderListener) encoderListeners.elementAt(i)).countDidChange(new JagEncoderEvent(this,
                    JagEncoderEvent.DISTANCE, getState(DISTANCE),
                    (getState(DIRECTION) == Sensor.TRUE)));
        }
    }
View Full Code Here

    }

    /** Notifies all <code>JagEncoderListener</code>s that encoder rotation has started */
    protected void notifyEncoderStarted() {
        for (int i = 0; i < encoderListeners.size(); i++) {
            ((JagEncoderListener) encoderListeners.elementAt(i)).rotationDidStart(new JagEncoderEvent(this,
                    JagEncoderEvent.STARTED, getState(DISTANCE),
                    (getState(DIRECTION) == Sensor.TRUE)));
        }
    }
View Full Code Here

    }

    /** Notifies all <code>JagEncoderListener</code>s that encoder rotation has stopped */
    protected void notifyEncoderStopped() {
        for (int i = 0; i < encoderListeners.size(); i++) {
            ((JagEncoderListener) encoderListeners.elementAt(i)).rotationDidStop(new JagEncoderEvent(this,
                    JagEncoderEvent.STOPPED, getState(DISTANCE),
                    (getState(DIRECTION) == Sensor.TRUE)));
        }
    }
View Full Code Here

  }

  protected void notifyVoltageChange() {
    for (int i = 0; i < powerListeners.size(); i++) {
      ((JagPowerListener) powerListeners.elementAt(i))
          .voltageChanged(new JagPowerEvent(this,
              JagPowerEvent.VOLTAGE_CHANGE, getState("Voltage")));
    }
  }
View Full Code Here

TOP

Related Classes of com.grt192.controller.cannonbot.TargetController

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.