Skip to content

isMoving implementation #43

Description

@jerryg2003

The documentation implies this exists but it is a "To Do" in the code. I made a simple implementation of this function if you are interested. Added an argument to make it easier. Mimics the code under "write" with wait=true.

bool VarSpeedServo::isMoving(int value) {
if (value < MIN_PULSE_WIDTH) {
if (read() != value) return(true);
} else {
if (readMicroseconds() != value) return(true);
}
return(false);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions