Examples of GRTGyro


Examples of com.grt192.sensor.GRTGyro

    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

Examples of com.grt192.sensor.GRTGyro

  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

Examples of com.grt192.sensor.GRTGyro

    private GRTGyro gyro;

    public BenchSensorBox(int gyroPort){
        accel = new GRTADXL345(3, 16, 5, "accel");
        accel.start();
        gyro = new GRTGyro(gyroPort, 5, "gyro");
        gyro.start();
    }
View Full Code Here

Examples of com.grt192.sensor.GRTGyro

    System.out.println("Motors Initialized");

    // 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");
View Full Code Here

Examples of com.grt192.sensor.GRTGyro

        addSensor("Accelerometer",
                new GRTAccelerometer(accelerometerPort, 50, "baseAccel"));
        getSensor("Accelerometer").start();

        addSensor("Gyro", new GRTGyro(gyroPort, 50, "baseGyro"));
        getSensor("Gyro").start();
    }
View Full Code Here

Examples of com.grt192.sensor.GRTGyro

            getActuator("Balloon" + i).start();
        }
        addActuator("Arm", new GRTVictor(victorPort));
        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.