CS 444 - Week 3 Lecture 2 - 2015-02-05
* tachometer
* an instrument that measures rotation
* there is a NXTRegulatedMotor method
getTachoCount
that returns the amount of rotation in
degrees
* setSpeed - expects an int, given in
degrees per second
* in package lejos.util, there is a Delay class,
and it has the method msDelay that expects
an int delay given in milliseconds
(so 1000 milliseconds == 1 second)
and delays the calling thread of execution
for that many milliseconds
(and a motor can keep running even if
the current program's main thread is
paused...)
* [as we mentioned in lab the next day --
Week 3 lab -- this is because there
is a SEPARATE regulator thread
regulating the speed of the motor!]