Skip to content

feature request: Servo class: servo.write(int angle, float rotationspeed) #71

Open
@dsyleixa

Description

@dsyleixa

feature request: Servo class: servo.write(int angle, float rotationspeed)

  • angle: degrees (endpoint)
  • rotationspeed: degrees per second

e.g.,

servo.write(90); // let the servo move to position 90° immediately
delay(1000);
servo.write(180, 10.0); // moves the servo from the current position (90°) to position 180° by a rotation speed of 10°/sec

The function must not be blocking, so that a following command can be started immediately before the further movement has been finished (simultaneous movement)

servo1.write(180, 10.0);
servo2.write(45, 5.0);

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: codeRelated to content of the project itselftype: enhancementProposed improvement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions