Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add hal::soft::sync_servo #11

Open
kammce opened this issue Jun 9, 2024 · 0 comments
Open

Add hal::soft::sync_servo #11

kammce opened this issue Jun 9, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@kammce
Copy link
Member

kammce commented Jun 9, 2024

class sync_servo_adapter {
  sync_servo_adapter(hal::servo& p_servo, hal::rotation_sensor& p_sensor);
};

When the position() API is called, it blocks until the rotation sensor reaches the desired position. This is a utility adaptor for when an application wants to wait until the servo has reached its destination before proceeding to the next step of the movement.

@kammce kammce added the enhancement New feature or request label Jun 9, 2024
@kammce kammce transferred this issue from libhal/libhal-soft Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant