public abstract class LynxController extends LynxCommExceptionHandler
Modifier and Type | Class and Description |
---|---|
class |
LynxController.PretendLynxModule |
Modifier and Type | Field and Description |
---|---|
protected android.content.Context |
context |
protected HardwareDeviceHealthImpl |
hardwareDeviceHealth |
protected boolean |
isEngaged |
protected boolean |
isHardwareInitialized |
protected boolean |
isHooked |
protected <any> |
registeredCallbacks |
tag
Constructor and Description |
---|
LynxController(android.content.Context context,
LynxModule module) |
Modifier and Type | Method and Description |
---|---|
protected void |
adjustHookingToMatchEngagement() |
void |
close() |
void |
disengage() |
protected void |
doHook() |
protected void |
doUnhook() |
void |
engage() |
protected void |
finishConstruction() |
protected void |
floatHardware() |
void |
forgetLastKnown() |
ARMINGSTATE |
getArmingState() |
java.lang.String |
getConnectionInfo() |
abstract java.lang.String |
getDeviceName() |
HealthStatus |
getHealthStatus() |
protected java.util.concurrent.Callable<HealthStatus> |
getHealthStatusOverride() |
Manufacturer |
getManufacturer() |
protected LynxModuleIntf |
getModule() |
SerialNumber |
getSerialNumber() |
protected abstract java.lang.String |
getTag() |
int |
getVersion() |
protected void |
hook() |
protected void |
initializeHardware() |
protected boolean |
isArmed() |
boolean |
isEngaged() |
protected void |
moduleNowArmedOrPretending() |
protected void |
moduleNowDisarmed() |
void |
onModuleStateChange(RobotArmingStateNotifier module,
RobotUsbModule.ARMINGSTATE state) |
void |
registerCallback(Callback callback,
boolean doInitialCallback) |
void |
resetDeviceConfigurationForOpMode() |
void |
setHealthStatus(HealthStatus status) |
protected void |
setHealthyIfArmed() |
protected void |
unhook() |
void |
unregisterCallback(Callback callback) |
handleException, handleSpecificException, handleSpecificException
protected android.content.Context context
protected boolean isHardwareInitialized
protected boolean isEngaged
protected boolean isHooked
protected final <any> registeredCallbacks
protected final HardwareDeviceHealthImpl hardwareDeviceHealth
public LynxController(android.content.Context context, LynxModule module)
protected abstract java.lang.String getTag()
getTag
in class LynxCommExceptionHandler
protected void finishConstruction()
public void onModuleStateChange(RobotArmingStateNotifier module, RobotUsbModule.ARMINGSTATE state)
protected void moduleNowArmedOrPretending()
protected void moduleNowDisarmed()
public SerialNumber getSerialNumber()
public ARMINGSTATE getArmingState()
public void registerCallback(Callback callback, boolean doInitialCallback)
public void unregisterCallback(Callback callback)
public Manufacturer getManufacturer()
public void close()
public java.lang.String getConnectionInfo()
public int getVersion()
public abstract java.lang.String getDeviceName()
public void resetDeviceConfigurationForOpMode()
protected void initializeHardware() throws RobotCoreException, java.lang.InterruptedException
RobotCoreException
java.lang.InterruptedException
protected void floatHardware()
public void forgetLastKnown()
protected void setHealthyIfArmed()
public void setHealthStatus(HealthStatus status)
protected java.util.concurrent.Callable<HealthStatus> getHealthStatusOverride()
public HealthStatus getHealthStatus()
public void engage()
public void disengage()
public boolean isEngaged()
protected LynxModuleIntf getModule()
protected void adjustHookingToMatchEngagement()
protected void hook()
protected void unhook()
protected void doHook()
protected void doUnhook()
protected boolean isArmed()