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

Initialize servo angle to 135°. #52

Closed
wants to merge 0 commits into from
Closed

Conversation

ssande-fwd
Copy link
Contributor

@tballmsft
Copy link
Collaborator

tballmsft commented Mar 17, 2025

@ssande-fwd - how does this change affect the non-continuous servos? And please remind me why the magic angle 135.

@ssande-fwd
Copy link
Contributor Author

For a continuous servo, 0° is full speed in one direction, 135° is 0 speed, and 270° is full speed in the other direction. We want 0 speed (135°) as our base state; For example in our car builds, we want them to be motionless by default rather than driving away by default.

There is no differentiation between continuous and positional servos, so positional servos are also initialized to 135°. They will swing to that when enabled if they were set to something else previously. This is much less disruptive for our purposes than the continuous servos spinning.

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

Successfully merging this pull request may close these issues.

Jacdac sending command packets during startup
2 participants