Interface RotateMoveController

    • Method Detail

      • rotate

        void rotate​(double angle)
        Rotates the NXT robot the specified number of degrees; direction determined by the sign of the parameter. Method returns when rotation is done.
        Parameters:
        angle - The angle to rotate in degrees. A positive value rotates left, a negative value right (clockwise).
      • rotate

        void rotate​(double angle,
                    boolean immediateReturn)
        Rotates the NXT robot the specified number of degrees; direction determined by the sign of the parameter. Method returns immediately if immediateReturn flag is true, otherwise returns when rotation is done.
        Parameters:
        angle - The angle to rotate in degrees. A positive value rotates left, a negative value right (clockwise).
        immediateReturn - If true, method returns immediately, otherwise blocks until rotation is complete.
      • setAngularSpeed

        void setAngularSpeed​(double speed)
        sets the rotation speed of the robot (the angular velocity of the rotate() methods)
        Parameters:
        speed - in degrees per second
      • getAngularSpeed

        double getAngularSpeed()
        Returns the value of the rotation speed
        Returns:
        the rotate speed in degrees per second
      • getMaxAngularSpeed

        double getMaxAngularSpeed()
        returns the maximum value of the rotation speed;
        Returns:
        max rotation speed
      • setAngularAcceleration

        void setAngularAcceleration​(double acceleration)
        Sets the acceleration at which the robot will accelerate at the start of a move and decelerate at the end of a move. Acceleration is measured in units/second^2. e.g. If wheel diameter is cm, then acceleration is cm/sec^2.

        If acceleration is set during a move it will not be in used for the current move, it will be in effect with the next move.

        Parameters:
        acceleration - in chosen units/second^2
      • getAngularAcceleration

        double getAngularAcceleration()
        Returns the acceleration at which the robot accelerates at the start of a move and decelerates at the end of a move.
        Returns:
        acceleration in chosen units/second^2
      • rotateRight

        void rotateRight()
      • rotateLeft

        void rotateLeft()