artificialpicasso.servo_utils.rotate#

artificialpicasso.servo_utils.rotate(s, angle, seconds=0.5, increment=1)[source]#

Rotates the given servo to the desired angle in the desired amount of time.

Parameters:
  • s (Servo) – The servo to rotate

  • angle (float) – The angle in degrees to rotate. 0 <= angle <= 180

  • seconds (float, optional) – Time in seconds to rotate the arm in. Defaults to 0.5.

  • increment (float, optional) – Moves the arm in increments of this size in degrees. Defaults to 1 degree.

Return type:

None