| |
bool LAmove(byte PORT, int D, int UNIT)
|
The
function
LAmove
moves the actuator by the specified amount of units and detects
if the motor is in stall when it reaches an end stop.
The input arguments are the the motor PORT,
the number of units the motor must move (D) and
UNIT, that can be one of the units defined below:
LA_MM (millimeters)
LA_HMM (half millimeter)
LA_CM 20 (centimeters)
LA_DLU (LEGO units)
The OUTPUT (boolean) is true if the motor was blocked before
completing its run, or false if it could complete the run. |