Search in sources :

Example 1 with RobotUsbManagerTty

use of com.qualcomm.robotcore.hardware.usb.serial.RobotUsbManagerTty in project robotcode by OutoftheBoxFTC.

the class HardwareDeviceManager method createUsbManager.

public static RobotUsbManager createUsbManager(Context context) throws RobotCoreException {
    RobotUsbManager usbManager = new RobotUsbManagerFtdi(context);
    if (LynxConstants.isRevControlHub()) {
        RobotUsbManagerCombining combiner = new RobotUsbManagerCombining();
        combiner.addManager(usbManager);
        combiner.addManager(new RobotUsbManagerTty(context));
        usbManager = combiner;
    }
    return usbManager;
}
Also used : RobotUsbManager(com.qualcomm.robotcore.hardware.usb.RobotUsbManager) RobotUsbManagerFtdi(com.qualcomm.robotcore.hardware.usb.ftdi.RobotUsbManagerFtdi) RobotUsbManagerTty(com.qualcomm.robotcore.hardware.usb.serial.RobotUsbManagerTty) RobotUsbManagerCombining(com.qualcomm.robotcore.hardware.usb.RobotUsbManagerCombining)

Aggregations

RobotUsbManager (com.qualcomm.robotcore.hardware.usb.RobotUsbManager)1 RobotUsbManagerCombining (com.qualcomm.robotcore.hardware.usb.RobotUsbManagerCombining)1 RobotUsbManagerFtdi (com.qualcomm.robotcore.hardware.usb.ftdi.RobotUsbManagerFtdi)1 RobotUsbManagerTty (com.qualcomm.robotcore.hardware.usb.serial.RobotUsbManagerTty)1