Package lejos.robotics

Examples of lejos.robotics.TachoMotor.rotate()


      return;
    }
    float rotAngle = angle * _trackWidth * 2
        / (_leftWheelDiameter * (1 - steerRatio));
    inside.rotate(_parity * (int) (rotAngle * steerRatio), true);
    outside.rotate(_parity * (int) rotAngle, immediateReturn);
    if (immediateReturn) {
      return;
    }
    while (inside.isMoving() || outside.isMoving())
      // changed isRotating() to isMoving() as this covers what we need
View Full Code Here


      }
      return getMovement();
    // end no turn limit
    float rotAngle = angle * _trackWidth * 2 / (_leftWheelDiameter * (1 - steerRatio));
    inside.rotate(_parity * (int) (rotAngle * steerRatio), true);
    outside.rotate(_parity * (int) rotAngle, true);
    if (!immediateReturn)
    {
      while (isMoving() && continueMoving()) Thread.yield();
      stop();
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.