You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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);
}
The text was updated successfully, but these errors were encountered:
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);
}
The text was updated successfully, but these errors were encountered: