Skip to content

Servo library #54

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

Merged
merged 14 commits into from
Aug 21, 2019
Merged

Servo library #54

merged 14 commits into from
Aug 21, 2019

Conversation

nseidle
Copy link
Member

@nseidle nseidle commented Aug 19, 2019

The servo library is working well. I've connected to all the built in functions. Two functions of note

ap3_err_t servoWriteResolution(uint8_t res)
uint8_t getServoResolution()

I added getServoResolution() to ap3_analog.cpp so that the Servo library could see what the current resolution was and map correctly.

I've added 7 examples including the last example showing the complete control of 29 servos!

@oclyke
Copy link
Contributor

oclyke commented Aug 21, 2019

Sweeeeeet!

P.s. I think there are some caveats to the PWM generation. Namely that when a secondary output is in use it has restrictions that are dependent on the settings of the primary output of that same timer. This means that we only have 16 truly independent PWM outputs. However given a constraint (e.g. all servo frames are a fixed width) it is possible to get 32 independent constrained (read: servo) outputs. Just thoughts.

Very cool anyway!

@oclyke oclyke merged commit 6c3267a into master Aug 21, 2019
@oclyke oclyke deleted the Servo branch August 21, 2019 17:02
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.

2 participants