public class LynxAnalogInputController extends LynxController implements AnalogInputController
LynxController.PretendLynxModuleHardwareDevice.ManufacturerHardwareDeviceHealth.HealthStatusRobotArmingStateNotifier.ARMINGSTATE, RobotArmingStateNotifier.Callback| Modifier and Type | Field and Description |
|---|---|
static int |
apiPortFirst |
static int |
apiPortLast |
static java.lang.String |
TAG |
context, hardwareDeviceHealth, isEngaged, isHardwareInitialized, isHooked, registeredCallbackstag| Constructor and Description |
|---|
LynxAnalogInputController(Context context,
LynxModule module) |
| Modifier and Type | Method and Description |
|---|---|
double |
getAnalogInputVoltage(int port)
Get the value of this analog input
Return the current ADC results from the A0-A7 channel input pins.
|
java.lang.String |
getDeviceName()
Returns a string suitable for display to the user as to the type of device.
|
double |
getMaxAnalogInputVoltage()
Returns the maximum value that getAnalogInputVoltage() is capable of reading
|
SerialNumber |
getSerialNumber()
Returns the serial number of this USB module
|
protected java.lang.String |
getTag() |
adjustHookingToMatchEngagement, close, disengage, doHook, doUnhook, engage, finishConstruction, floatHardware, forgetLastKnown, getArmingState, getConnectionInfo, getHealthStatus, getHealthStatusOverride, getManufacturer, getModule, 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 static final int apiPortFirst
public static final int apiPortLast
public LynxAnalogInputController(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 SerialNumber getSerialNumber()
RobotArmingStateNotifiergetSerialNumber in interface AnalogInputControllergetSerialNumber in interface RobotArmingStateNotifiergetSerialNumber in class LynxControllerpublic double getAnalogInputVoltage(int port)
AnalogInputControllergetAnalogInputVoltage in interface AnalogInputControllerport - which analog channel to readpublic double getMaxAnalogInputVoltage()
AnalogInputControllergetMaxAnalogInputVoltage in interface AnalogInputControllerAnalogInputController.getAnalogInputVoltage(int)