Phidgets
Class PhidgetMotorControl
java.lang.Object
java.lang.Thread
Phidgets.Phidget
Phidgets.PhidgetMotorControl
- All Implemented Interfaces:
- Runnable
public class PhidgetMotorControl
- extends Phidget
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
events
protected _IPhidgetMotorControlEvents events
PhidgetMotorControl
public PhidgetMotorControl()
Open
public boolean Open(boolean Exclusive)
Open
public boolean Open(boolean Exclusive,
int SerialNumber)
Close
public void Close()
run
public void run()
- Specified by:
run
in interface Runnable
- Overrides:
run
in class Thread
GetNumMotors
public int GetNumMotors()
GetNumInputs
public int GetNumInputs()
GetInputState
public boolean GetInputState(int Index)
GetAcceleration
public int GetAcceleration(int Index)
GetMotorSpeed
public int GetMotorSpeed(int Index)
GetTorque
public int GetTorque(int Index)
SetAcceleration
public void SetAcceleration(int Index,
int newVal)
SetMotorSpeed
public void SetMotorSpeed(int Index,
int newVal)
add_IPhidgetMotorControlEventsListener
public void add_IPhidgetMotorControlEventsListener(_IPhidgetMotorControlEvents l)
remove_IPhidgetMotorControlEventsListener
public void remove_IPhidgetMotorControlEventsListener(_IPhidgetMotorControlEvents l)