Package com.grt192.core

Examples of com.grt192.core.Controller


        leftJaguar.start();

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

        this.leftEncoder = new GRTEncoder(LeftChanela, LeftChanelb, 5, "ljagencoder");

        this.rightEncoder = new GRTEncoder(RightChanela, RightChanelb, 5, "rjagencoder");

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


    private AsynchronousPIDController turnControl;
    private AsynchronousPIDController leftDriveControl;
    private AsynchronousPIDController rightDriveControl;

    public CBPWMTankDriveTrain(int lfpin, int rfpin, int gyropin, int LeftChanela, int LeftChanelb, int RightChanela, int RightChanelb) {
        this(new GRTJaguar(lfpin), new GRTJaguar(rfpin), new GRTGyro(
                gyropin, 5, "cangyro"), LeftChanela, LeftChanelb, RightChanela, RightChanelb);
    }
View Full Code Here

  private AsynchronousPIDController leftDriveControl;
  private AsynchronousPIDController rightDriveControl;

  public CBTankDriveTrain(int lfpin, int rfpin, int gyropin) {
    this(new GRTCANJaguar(lfpin), new GRTCANJaguar(rfpin), new GRTGyro(
        gyropin, 5, "cangyro"));
  }
View Full Code Here

    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

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

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

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

        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

     *
     * @return
     */
    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

TOP

Related Classes of com.grt192.core.Controller

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.