Package com.grt192.actuator

Examples of com.grt192.actuator.GRTJaguar


  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 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 GRTJaguar topJag3;
    private GRTJaguar topJag4;
    private GRTJaguar topJag5;

    public BenchMechanism() {
        bottomJag1 = new GRTJaguar(2);
        bottomJag1.start();
        bottomJag2 = new GRTJaguar(3);
        bottomJag2.start();
        bottomJag3 = new GRTJaguar(4);
        bottomJag3.start();
        bottomJag4 = new GRTJaguar(5);
        bottomJag4.start();

        topJag1 = new GRTJaguar(6);
        topJag1.start();

        topJag2 = new GRTJaguar(7);
        topJag2.start();

        topJag3 = new GRTJaguar(8);
        topJag3.start();

        topJag4 = new GRTJaguar(9);
        topJag4.start();

        topJag5 = new GRTJaguar(10);
        topJag5.start();

        addActuator("top1", topJag1);
        addActuator("top2", topJag2);
        addActuator("top3", topJag3);
View Full Code Here

    private GRTJaguar leftMotor;
    private GRTJaguar rightMotor;
    private boolean debug;

    public BenchFinaleMechanism(int left, int right, boolean debug) {
        leftMotor = new GRTJaguar(left);
        leftMotor.start();
        rightMotor = new GRTJaguar(right);
        rightMotor.start();
        this.debug = debug;
    }
View Full Code Here

    private GRTSwitch limit;

    private boolean debug;
   
    public BenchKicker(int port, int limiter, boolean debug){
        motor = new GRTJaguar(port);
        motor.start();
        addActuator("Motor", motor);
        limit = new GRTSwitch(limiter, 25, "kickLimit");
        limit.start();
        addSensor("switch", limit);
View Full Code Here

    private GRTJaguar rightMotor;
    private boolean debug;
    private boolean spinning;

    public BenchRollers(int left, int right, boolean debug) {
        leftMotor = new GRTJaguar(left);
        leftMotor.start();
        rightMotor = new GRTJaguar(right);
        rightMotor.start();
        addActuator("left", leftMotor);
        addActuator("right", leftMotor);
        speed = 1.0;
        this.debug = debug;
View Full Code Here

    private GRTJaguar backLeft;
    private GRTJaguar backRight;
    private boolean debug;

    public BenchDriveTrain(int fl, int fr, int bl, int br, boolean debug) {
        frontLeft = new GRTJaguar(fl);
        frontLeft.start();
        frontRight = new GRTJaguar(fr);
        frontRight.start();
        backLeft = new GRTJaguar(bl);
        backLeft.start();
        backRight = new GRTJaguar(br);
        backRight.start();
        addActuator("backleft", backLeft);
        addActuator("backright", backRight);
        addActuator("frontleft", frontLeft);
        addActuator("frontright", frontRight);
View Full Code Here

    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);

    GRTJaguar leftDT2 = new GRTJaguar(7);

    GRTJaguar rightDT1 = new GRTJaguar(9);

    GRTJaguar rightDT2 = new GRTJaguar(10);

    GRTJaguar recovery1 = new GRTJaguar(5);
    GRTJaguar recovery2 = new GRTJaguar(4);
    GRTJaguar kicker = new GRTJaguar(2);
    GRTJaguar roller1 = new GRTJaguar(3); // left
    GRTJaguar roller2 = new GRTJaguar(6); // right
    System.out.println("Motors Initialized");

    // analog inputs
    GRTPotentiometer batterySensor = new GRTPotentiometer(7, 50,
        "batteryVoltage");
View Full Code Here

  private int activeBarrel;
  private int inactiveBarrel;

  public CBCannon(int tasolpin, int tbsolpin, int tssolpin1, int tssolpin2,
      GRTCompressor compressor) {
    this(new GRTSolenoid(tasolpin), new GRTSolenoid(tbsolpin),
        new GRTTwoWaySolenoid(tssolpin1, tssolpin2),
        compressor);

  }
View Full Code Here

     */
    public HauntedHouseMechanism(int solPin) {
        //we identify mechanisms by solenoid
        solenoidID = "Solenoid" + solPin;

        solenoid = new GRTSolenoid(solPin);
        addActuator(solenoidID, solenoid);
        solenoid.start();

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

TOP

Related Classes of com.grt192.actuator.GRTJaguar

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.