public class LynxVoltageSensor extends LynxController implements VoltageSensor
LynxController.PretendLynxModuleHardwareDevice.ManufacturerHardwareDeviceHealth.HealthStatusRobotArmingStateNotifier.ARMINGSTATE, RobotArmingStateNotifier.Callback| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TAG |
context, hardwareDeviceHealth, isEngaged, isHardwareInitialized, isHooked, registeredCallbackstag| Constructor and Description |
|---|
LynxVoltageSensor(Context context,
LynxModule module) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDeviceName()
Returns a string suitable for display to the user as to the type of device.
|
protected java.lang.String |
getTag() |
double |
getVoltage()
Get the current voltage
|
adjustHookingToMatchEngagement, close, disengage, doHook, doUnhook, engage, finishConstruction, floatHardware, forgetLastKnown, getArmingState, getConnectionInfo, getHealthStatus, getHealthStatusOverride, getManufacturer, getModule, getSerialNumber, getVersion, hook, initializeHardware, isArmed, isEngaged, moduleNowArmedOrPretending, moduleNowDisarmed, onModuleStateChange, registerCallback, resetDeviceConfigurationForOpMode, setHealthStatus, setHealthyIfArmed, unhook, unregisterCallbackhandleException, handleSpecificException, handleSpecificException, handleSpecificException, handleSpecificExceptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, getConnectionInfo, getManufacturer, getVersion, resetDeviceConfigurationForOpModepublic static final java.lang.String TAG
public LynxVoltageSensor(Context context,
LynxModule module)
throws RobotCoreException,
java.lang.InterruptedException
RobotCoreExceptionjava.lang.InterruptedExceptionprotected java.lang.String getTag()
getTag in class LynxControllerpublic java.lang.String getDeviceName()
HardwareDevicegetDeviceName in interface HardwareDevicegetDeviceName in class LynxControllerpublic double getVoltage()
VoltageSensorgetVoltage in interface VoltageSensor