-
Notifications
You must be signed in to change notification settings - Fork 0
Add analog servo control #13
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
base: master
Are you sure you want to change the base?
Conversation
| Servo::Servo(uint8_t channel) { | ||
| this->channel = channel; | ||
| ledcSetup(channel, PWM_FREQ, PWM_RESOLUTION); // nastaveni PWM vystupu | ||
| // write(1500); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what this means? should we keep it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a default setting (middle servo position) for testing purposes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, thanks for explanation
| P uint8 mode ... nastavení režimu gps (0 - vypnuto, 1 - surová data, 2 - ...) | ||
| V ... version | ||
|
|
||
| C uint16_t ... analogové servo na pinu GPIO4 (šířka pulzu 1000 ... 2000 us) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why 'C'? if you would extend the protocol for smart servos, you would use new command or extend this one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why 'C', and why not (the first letter that came to mind). I would rather use a new command for smart servos.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, thanks
|
I suppose that this PR is already part of #14 and we should abort it, correct? |
There is one digital I/O remaining and ML recommended to use it for servo ... and this is his PR ;)