Package com.grt192.sensor

Examples of com.grt192.sensor.GRTJoystick


//        hlc = new HHLEDController(controls);
        //if we do this, implement notification for all elements of controls
    }

    private void initSocket(){
        srvr = new GRTSingleClientServer(PORT);
        srvr.start();
        System.out.println("connected");
        srvr.addSocketListener(this);
    }
View Full Code Here


        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

   * Constructor for robot, where all components are created, registered with
   * controllers and mechanisms.
   */
  public MainRobot() {
    // Driver station components
    GRTJoystick leftJoyStick = new GRTJoystick(1, 12, "left");
    GRTJoystick rightJoyStick = new GRTJoystick(2, 12, "right");
    GRTJoystick secondaryJoyStick = new GRTJoystick(3, 15, "secondary");
    System.out.println("Joysticks Initialized");

    // PWM outputs
    GRTJaguar leftDT1 = new GRTJaguar(8);

View Full Code Here

  private DriverStationLCD lcd;
  private int line;
  private String[] lines;

  public GRTDriverStation(int left, int right, int secondary) {
    this(new GRTJoystick(left, 50, "leftJoystick"), new GRTJoystick(right, 50,
        "rightJoystick"), new GRTJoystick(secondary, 50, "secondaryJoystick"));
  }
View Full Code Here

* @author Student
*/
public class GRTDriverStation extends Mechanism {

    public GRTDriverStation(int left, int right, int secondary) {
        this(new GRTJoystick(left, 50, "left"),
             new GRTJoystick(right, 50, "right"),
             new GRTJoystick(secondary, 50, "secondary"));
    }
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.GRTJoystick

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.