Skip to content

Conversation

@m3d
Copy link
Member

@m3d m3d commented Jun 19, 2025

There is one digital I/O remaining and ML recommended to use it for servo ... and this is his PR ;)

@m3d m3d requested a review from MartinLocker June 19, 2025 16:28
Servo::Servo(uint8_t channel) {
this->channel = channel;
ledcSetup(channel, PWM_FREQ, PWM_RESOLUTION); // nastaveni PWM vystupu
// write(1500);
Copy link
Member Author

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?

Copy link
Collaborator

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.

Copy link
Member Author

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)
Copy link
Member Author

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?

Copy link
Collaborator

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, thanks

@m3d
Copy link
Member Author

m3d commented Sep 5, 2025

I suppose that this PR is already part of #14 and we should abort it, correct?

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.

3 participants