8000 Servo::detach() can change servo position · Issue #19 · RoboticsBrno/ServoESP32 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Servo::detach() can change servo position #19
Open
@dkwach

Description

@dkwach

it is useful to detach servo after movement in cases like:

  • limit current consumption (servo mechanic could keep position without electronic control for small forces)
  • limit servo vibrations (usually present in cheap servos) - sometimes we can observe vibrations after reaching designed position

In current implementation (if I understood correctly) detach() is not controlling pwm state and can disable pwm during high state and move servo to different position.

It would be great to support some safe detach, which will check if pwm is not in active state and won't change servo position.
Proposal for interface:

detach(bool isSafe=false); //false default to keep backward compatibility 
or
safeDetach();

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0