Package com.grt192.actuator

Examples of com.grt192.actuator.GRTVictor


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

        GRTVictor leftDT2 = new GRTVictor(3);

        GRTVictor rightDT1 = new GRTVictor(6);

        GRTVictor rightDT2 = new GRTVictor(10);

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

        // analog inputs
        InternetRPC rpc = new InternetRPC(180);
View Full Code Here


            int[] switchPorts) {
        for(int i = 1; i <= BALLOON_COUNT/2; i++) {
            addActuator("Balloon" + i, new GRTGPIORelay(relayFwdPorts[i], relayBwdPorts[i]));
            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++) {
View Full Code Here

        for(int i = 1; i <= 6; i++) {
            addActuator("Relay" + i, new GRTRelay(relayPorts[i]));
            getActuator("Relay" + i).start();
        }
        for(int i = 1; i <= 4; i++) {
            addActuator("Victor" + i, new GRTVictor(victorPorts[i]));
            getActuator("Victor" + i).start();
        }
    }
View Full Code Here

        v.start();
        addActuator("Victor", v);
    }

    public BallShooter(int victorPort) {
        addActuator("Victor", new GRTVictor(victorPort));
        getActuator("Victor").start();
    }
View Full Code Here

        listeners.removeElement(l);
    }

    /** Notifies all CANTimeoutListeners that a CANTimeoutException has occurred **/
    public void notifyCANTimeout() {
        GRTCANJaguarException ex = new GRTCANJaguarException(GRTCANJaguarException.CAN_TIMEOUT, this);
        for (int i = 0; i < listeners.size(); i++) {
            ((CANTimeoutListener) listeners.elementAt(i)).CANTimedOut(ex);
        }
    }
View Full Code Here

        // camera = new CameraAssembly();
        // System.out.println("Camera Initialized");

        // Controllers
        dbController = new DashBoardController();
        dbController.start();
        System.out.println("Dashboard Initialized");


        driveControl = new XboxDriver(robotbase, driverStation);
View Full Code Here

            watchDogCtl.start();
        }

        if (useDashBoard) {
            //Sends hardware status data to dashboard
            dashboard = new DashBoardController();
            dashboard.start();
            System.out.println("Dashboard Streaming: \tREADY");
        }

        if (useLogger) {
View Full Code Here

        globals = new Hashtable();
        autonomousControllers = new Vector();
        teleopControllers = new Vector();

        globalListeners = new Vector();
        watchDogCtl = new WatchDogController(getWatchdog());
        watchDogCtl.start();
        logger = new GRTLogger();
        System.out.println("Started GRT Framework");
        instance = this;
    }
View Full Code Here

        globals = new Hashtable();
        globalListeners = new Vector();

        if (useWatchDog) {
            watchDogCtl = new WatchDogController(getWatchdog());
//            watchDogCtl.setPriority(Thread.MAX_PRIORITY);
            watchDogCtl.start();
        }

        if (useDashBoard) {
View Full Code Here

        canGyro.start();
        leftEncoder.start();
        rightEncoder.start();

        turnControl = new AsynchronousPIDController(new PIDController(turnP,
                turnI, turnD, canGyro, this));
        leftDriveControl = new AsynchronousPIDController(new PIDController(
                driveP, driveI, driveD, leftEncoder, this));
        rightDriveControl = new AsynchronousPIDController(new PIDController(
                driveP, driveI, driveD, rightEncoder, this));
        pointTurn = true;
        leftDriveControl.addPIDListener(this);
        rightDriveControl.addPIDListener(this);
        turnControl.addPIDListener(this);
View Full Code Here

TOP

Related Classes of com.grt192.actuator.GRTVictor

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.