Package com.grt192.actuator.exception

Examples of com.grt192.actuator.exception.GRTCANJaguarException


        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


        }
    }

    /** Notifies all listeners that the jag has a Current fault **/
    private void notifyCurrentFault() {
        GRTCANJaguarException ex = new GRTCANJaguarException(GRTCANJaguarException.CURRENT_FAULT, jag);
        for (int i = 0; i < listeners.size(); i++) {
            ((CANJaguarFaultListener) listeners.elementAt(i)).jagCurrentFault(ex);
        }
    }
View Full Code Here

        }
    }

    /** Notifies all listeners that the jag has a Temperature fault **/
    private void notifyTemperatureFault() {
        GRTCANJaguarException ex = new GRTCANJaguarException(GRTCANJaguarException.TEMPERATURE_FAULT, jag);
        for (int i = 0; i < listeners.size(); i++) {
            ((CANJaguarFaultListener) listeners.elementAt(i)).jagTemperatureFault(ex);
        }
    }
View Full Code Here

        }
    }

    /** Notifies all listeners that the jag has a voltage fault **/
    private void notifyVoltageFault() {
        GRTCANJaguarException ex = new GRTCANJaguarException(GRTCANJaguarException.VOLTAGE_FAULT, jag);
        for (int i = 0; i < listeners.size(); i++) {
            ((CANJaguarFaultListener) listeners.elementAt(i)).jagBusVoltageFault(ex);
        }
    }
View Full Code Here

        }
    }

    /** Notifies all listeners that the jag has a GateDriver fault **/
    private void notifyGateDriverFault() {
        GRTCANJaguarException ex = new GRTCANJaguarException(GRTCANJaguarException.GATE_DRIVER_FAULT, jag);
        for (int i = 0; i < listeners.size(); i++) {
            ((CANJaguarFaultListener) listeners.elementAt(i)).jagGateDriverFault(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.exception.GRTCANJaguarException

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.