Package com.grt192.sensor

Examples of com.grt192.sensor.GRTGyro


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

        // analog inputs
        InternetRPC rpc = new InternetRPC(180);
        rpc.start();
        BatterySensor s = new BatterySensor(10);
        s.start();
        VoltageMessenger messenger = new VoltageMessenger(rpc, 23, s);
//        GRTPotentiometer batterySensor = new GRTPotentiometer(1, 50,
//                "batteryVoltage");
//        batterySensor.start();
//        GRTGyro gyro = new GRTGyro(7, 15, "BaseGyro");
View Full Code Here


        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

    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

    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

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

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

            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

    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

TOP

Related Classes of com.grt192.sensor.GRTGyro

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.