Package lejos.hardware.motor
Class JavaMotorRegulator.Controller
- java.lang.Object
-
- java.lang.Thread
-
- lejos.hardware.motor.JavaMotorRegulator.Controller
-
- All Implemented Interfaces:
java.lang.Runnable
- Enclosing class:
- JavaMotorRegulator
protected static class JavaMotorRegulator.Controller extends java.lang.ThreadThis 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.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun()-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-