-
- All Implemented Interfaces:
-
com.qualcomm.robotcore.hardware.Engagable
,com.qualcomm.robotcore.hardware.HardwareDevice
,com.qualcomm.robotcore.hardware.HardwareDeviceHealth
,com.qualcomm.robotcore.hardware.RobotCoreLynxController
,com.qualcomm.robotcore.hardware.usb.RobotArmingStateNotifier
,com.qualcomm.robotcore.hardware.usb.RobotArmingStateNotifier.Callback
public abstract class LynxController extends LynxCommExceptionHandler implements RobotCoreLynxController, Engagable, HardwareDeviceHealth, RobotArmingStateNotifier.Callback, RobotArmingStateNotifier
Created by bob on 2016-03-07.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
LynxController.PretendLynxModule
-
Field Summary
Fields Modifier and Type Field Description protected boolean
isEngaged
-
Constructor Summary
Constructors Constructor Description LynxController(Context context, LynxModule module)
-
Method Summary
Modifier and Type Method Description boolean
isEngaged()
synchronized void
onModuleStateChange(RobotArmingStateNotifier module, RobotArmingStateNotifier.ARMINGSTATE state)
SerialNumber
getSerialNumber()
RobotArmingStateNotifier.ARMINGSTATE
getArmingState()
void
registerCallback(RobotArmingStateNotifier.Callback callback, boolean doInitialCallback)
void
unregisterCallback(RobotArmingStateNotifier.Callback callback)
HardwareDevice.Manufacturer
getManufacturer()
synchronized void
close()
String
getConnectionInfo()
int
getVersion()
abstract String
getDeviceName()
void
resetDeviceConfigurationForOpMode()
void
forgetLastKnown()
void
setHealthStatus(HardwareDeviceHealth.HealthStatus status)
HardwareDeviceHealth.HealthStatus
getHealthStatus()
void
engage()
void
disengage()
-
Methods inherited from class com.qualcomm.robotcore.hardware.HardwareDevice
close, getConnectionInfo, getDeviceName, getManufacturer, getVersion, resetDeviceConfigurationForOpMode
-
Methods inherited from class com.qualcomm.robotcore.hardware.Engagable
disengage, engage, isEngaged
-
Methods inherited from class com.qualcomm.robotcore.hardware.HardwareDeviceHealth
getHealthStatus, setHealthStatus
-
Methods inherited from class com.qualcomm.robotcore.hardware.usb.RobotArmingStateNotifier.Callback
onModuleStateChange
-
Methods inherited from class com.qualcomm.robotcore.hardware.usb.RobotArmingStateNotifier
getArmingState, getSerialNumber, registerCallback, unregisterCallback
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
LynxController
LynxController(Context context, LynxModule module)
-
-
Method Detail
-
isEngaged
boolean isEngaged()
-
onModuleStateChange
synchronized void onModuleStateChange(RobotArmingStateNotifier module, RobotArmingStateNotifier.ARMINGSTATE state)
-
getSerialNumber
SerialNumber getSerialNumber()
-
getArmingState
RobotArmingStateNotifier.ARMINGSTATE getArmingState()
-
registerCallback
void registerCallback(RobotArmingStateNotifier.Callback callback, boolean doInitialCallback)
-
unregisterCallback
void unregisterCallback(RobotArmingStateNotifier.Callback callback)
-
getManufacturer
HardwareDevice.Manufacturer getManufacturer()
-
close
synchronized void close()
-
getConnectionInfo
String getConnectionInfo()
-
getVersion
int getVersion()
-
getDeviceName
abstract String getDeviceName()
-
resetDeviceConfigurationForOpMode
void resetDeviceConfigurationForOpMode()
-
forgetLastKnown
void forgetLastKnown()
-
setHealthStatus
void setHealthStatus(HardwareDeviceHealth.HealthStatus status)
-
getHealthStatus
HardwareDeviceHealth.HealthStatus getHealthStatus()
-
engage
void engage()
-
disengage
void disengage()
-
-
-
-