public class FtcEventLoop.DefaultUsbModuleAttachmentHandler extends java.lang.Object implements UsbModuleAttachmentHandler
Constructor and Description |
---|
DefaultUsbModuleAttachmentHandler() |
Modifier and Type | Method and Description |
---|---|
void |
handleUsbModuleAttach(RobotUsbModule module)
One of the hardware modules in the current robot configuration (such as a Modern Robotics
DC Motor Controller, a Modern Robotics Legacy Module, etc) is now newly attached to the
system (or so we think).
|
void |
handleUsbModuleDetach(RobotUsbModule module)
One of the hardware modules in the current robot configuration (such as a Modern Robotics
DC Motor Controller, a Modern Robotics Legacy Module, etc) has been disconnected from the
system.
|
public void handleUsbModuleAttach(RobotUsbModule module) throws RobotCoreException, java.lang.InterruptedException
UsbModuleAttachmentHandler
handleUsbModuleAttach
in interface UsbModuleAttachmentHandler
module
- the module which is newly attachedRobotCoreException
java.lang.InterruptedException
public void handleUsbModuleDetach(RobotUsbModule module) throws RobotCoreException, java.lang.InterruptedException
UsbModuleAttachmentHandler
handleUsbModuleDetach
in interface UsbModuleAttachmentHandler
module
- the module which has become disconnectedRobotCoreException
java.lang.InterruptedException