Package com.grt192.controller.cannonbot

Examples of com.grt192.controller.cannonbot.CBDriveController


        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


        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

    cannon = new CBCannon(1, 2, 3, 4, compressor);
    arm = new CBArm(5, 6, compressor);
    target = new Target(new GRTTwoWaySolenoid(1,2));
   
    cannonController = new CBCannonController(driverStation, cannon);
    driveController = new CBDriveController (driveTrain, driverStation);
    dashboardController = new DashBoardController();
    dashboardController.start();

                targetController = new TargetController(driverStation, target);
                targetController.start();
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

    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

        leftWheelX = -ROBOT_WIDTH / 2;
        rightWheelX = ROBOT_WIDTH / 2;
        leftWheelY = rightWheelY = 0;

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

TOP

Related Classes of com.grt192.controller.cannonbot.CBDriveController

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.