@Deprecated public class LynxPwmOutputController extends LynxController implements PWMOutputController, PWMOutputControllerEx
LynxController.PretendLynxModuleHardwareDevice.ManufacturerHardwareDeviceHealth.HealthStatusRobotArmingStateNotifier.ARMINGSTATE, RobotArmingStateNotifier.Callback| Modifier and Type | Field and Description |
|---|---|
static int |
apiPortFirst
Deprecated.
|
static int |
apiPortLast
Deprecated.
|
protected LastKnown<java.lang.Integer>[] |
lastKnownOutputTimes
Deprecated.
|
protected LastKnown<java.lang.Integer>[] |
lastKnownPulseWidthPeriods
Deprecated.
|
static java.lang.String |
TAG
Deprecated.
|
context, hardwareDeviceHealth, isEngaged, isHardwareInitialized, isHooked, registeredCallbackstag| Constructor and Description |
|---|
LynxPwmOutputController(Context context,
LynxModule module)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
floatHardware()
Deprecated.
|
java.lang.String |
getDeviceName()
Deprecated.
Returns a string suitable for display to the user as to the type of device.
|
int |
getPulseWidthOutputTime(int port)
Deprecated.
Gets the pulse width for the channel output in units of 1 microsecond.
|
int |
getPulseWidthPeriod(int port)
Deprecated.
Gets the pulse repetition period for the channel output in units of 1 microsecond.
|
SerialNumber |
getSerialNumber()
Deprecated.
Returns the serial number of this USB module
|
protected java.lang.String |
getTag()
Deprecated.
|
void |
initializeHardware()
Deprecated.
|
boolean |
isPwmEnabled(int port)
Deprecated.
|
void |
setPulseWidthOutputTime(int port,
int usDuration)
Deprecated.
Set the pulse width output time for this channel.
|
void |
setPulseWidthPeriod(int port,
int usPeriod)
Deprecated.
Set the pulse width output period.
|
void |
setPwmDisable(int port)
Deprecated.
|
void |
setPwmEnable(int port)
Deprecated.
|
adjustHookingToMatchEngagement, close, disengage, doHook, doUnhook, engage, finishConstruction, forgetLastKnown, getArmingState, getConnectionInfo, getHealthStatus, getHealthStatusOverride, getManufacturer, getModule, getVersion, hook, 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
protected LastKnown<java.lang.Integer>[] lastKnownOutputTimes
protected LastKnown<java.lang.Integer>[] lastKnownPulseWidthPeriods
public LynxPwmOutputController(Context context,
LynxModule module)
throws RobotCoreException,
java.lang.InterruptedException
RobotCoreExceptionjava.lang.InterruptedExceptionprotected java.lang.String getTag()
getTag in class LynxControllerpublic void initializeHardware()
initializeHardware in class LynxControllerpublic void floatHardware()
floatHardware in class LynxControllerpublic java.lang.String getDeviceName()
HardwareDevicegetDeviceName in interface HardwareDevicegetDeviceName in class LynxControllerpublic SerialNumber getSerialNumber()
RobotArmingStateNotifiergetSerialNumber in interface PWMOutputControllergetSerialNumber in interface RobotArmingStateNotifiergetSerialNumber in class LynxControllerpublic void setPulseWidthOutputTime(int port,
int usDuration)
PWMOutputControllersetPulseWidthOutputTime in interface PWMOutputControllerport - port this device is attached tousDuration - pulse width for the port in microseconds.public void setPulseWidthPeriod(int port,
int usPeriod)
PWMOutputControllersetPulseWidthPeriod in interface PWMOutputControllerport - port this device is attached tousPeriod - pulse repetition period in microseconds.public int getPulseWidthOutputTime(int port)
PWMOutputControllergetPulseWidthOutputTime in interface PWMOutputControllerport - port this device is attached topublic int getPulseWidthPeriod(int port)
PWMOutputControllergetPulseWidthPeriod in interface PWMOutputControllerport - port this device is attached topublic void setPwmEnable(int port)
setPwmEnable in interface PWMOutputControllerExpublic void setPwmDisable(int port)
setPwmDisable in interface PWMOutputControllerExpublic boolean isPwmEnabled(int port)
isPwmEnabled in interface PWMOutputControllerEx