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

ServoBlaster how to disable/turn off an individual servo? #93

Open
salk31 opened this issue Sep 11, 2017 · 1 comment
Open

ServoBlaster how to disable/turn off an individual servo? #93

salk31 opened this issue Sep 11, 2017 · 1 comment

Comments

@salk31
Copy link

salk31 commented Sep 11, 2017

I've tried sending "0" but that seems to cause glitches. Could it be truncating an ongoing pulse?

I'd rather not use the idle timeout as other servos might still be working while I want to turn off another.

Many thanks for great code.

@salk31
Copy link
Author

salk31 commented Sep 23, 2017

I hacked in set_servo_idle and it seems to work:
if (width == 0) { set_servo_idle(servo); } else { turnon_mask[servo] = mask; update_idle_time(servo); }

but I've no clue what the rest of set_servo method is doing. Also are there any use cases for truncating the outgoing pulses? When using the LEDs?

Maybe better to have a more direct way to trigger calling set_servo_idle?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant