lejos.nxt
Class NXTRegulatedMotor.Controller
java.lang.Object
java.lang.Thread
lejos.nxt.NXTRegulatedMotor.Controller
- All Implemented Interfaces:
- Runnable
- Enclosing class:
- NXTRegulatedMotor
protected static class NXTRegulatedMotor.Controller
- extends Thread
This class provides a single thread that drives all of the motor regulation
process. Only active motors will be regulated. To try and keep motors
as closely synchronized as possible tach counts for all motors are gathered
as close as possible to the same time. Similarly new power levels for each
motor are also set at the same time.
Method Summary |
void |
run()
When an object implementing interface Runnable is used
to create a thread, starting the thread causes the object's
run method to be called in that separately executing
thread. |
Methods inherited from class java.lang.Thread |
currentThread, getDefaultUncaughtExceptionHandler, getName, getPriority, getUncaughtExceptionHandler, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, start, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NXTRegulatedMotor.Controller
protected NXTRegulatedMotor.Controller()
run
public void run()
- Description copied from interface:
Runnable
- When an object implementing interface
Runnable
is used
to create a thread, starting the thread causes the object's
run
method to be called in that separately executing
thread.
- Specified by:
run
in interface Runnable
- Overrides:
run
in class Thread