Skip to content

feature request: Servo class: servo.write(angle, rotationspeed) #10245

Closed
@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

    Library: ServoThe Servo Arduino libraryType: DuplicateAnother item already exists for this topicfeature requestA request to make an enhancement (not a bug fix)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions