use of com.qualcomm.robotcore.hardware.usb.ftdi.RobotUsbManagerFtdi 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;
}
Aggregations