@Deprecated public class LynxPwmOutputController extends LynxController implements PWMOutputController, PWMOutputControllerEx
LynxController.PretendLynxModule
HardwareDevice.Manufacturer
HardwareDeviceHealth.HealthStatus
RobotArmingStateNotifier.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, registeredCallbacks
tag
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, unregisterCallback
handleException, handleSpecificException, handleSpecificException, handleSpecificException, handleSpecificException
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, getConnectionInfo, getManufacturer, getVersion, resetDeviceConfigurationForOpMode
public 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
RobotCoreException
java.lang.InterruptedException
protected java.lang.String getTag()
getTag
in class LynxController
public void initializeHardware()
initializeHardware
in class LynxController
public void floatHardware()
floatHardware
in class LynxController
public java.lang.String getDeviceName()
HardwareDevice
getDeviceName
in interface HardwareDevice
getDeviceName
in class LynxController
public SerialNumber getSerialNumber()
RobotArmingStateNotifier
getSerialNumber
in interface PWMOutputController
getSerialNumber
in interface RobotArmingStateNotifier
getSerialNumber
in class LynxController
public void setPulseWidthOutputTime(int port, int usDuration)
PWMOutputController
setPulseWidthOutputTime
in interface PWMOutputController
port
- port this device is attached tousDuration
- pulse width for the port in microseconds.public void setPulseWidthPeriod(int port, int usPeriod)
PWMOutputController
setPulseWidthPeriod
in interface PWMOutputController
port
- port this device is attached tousPeriod
- pulse repetition period in microseconds.public int getPulseWidthOutputTime(int port)
PWMOutputController
getPulseWidthOutputTime
in interface PWMOutputController
port
- port this device is attached topublic int getPulseWidthPeriod(int port)
PWMOutputController
getPulseWidthPeriod
in interface PWMOutputController
port
- port this device is attached topublic void setPwmEnable(int port)
setPwmEnable
in interface PWMOutputControllerEx
public void setPwmDisable(int port)
setPwmDisable
in interface PWMOutputControllerEx
public boolean isPwmEnabled(int port)
isPwmEnabled
in interface PWMOutputControllerEx