Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix issue with writing inital servo value before min/max is configured#2318

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fpistm merged 1 commit intostm32duino:mainfromjan019:fix/servo-attach
Mar 25, 2024

Conversation

jan019
Copy link
Contributor

Summary

The call to function Servo::write() in Servo::attach() must be done after Servo::min and Servo::max are configured - Servo::write() uses the min/max for mapping the passed value if the value is passed in degrees. Therefore if inital value in attach is set in degress and min/max is not configured when call to Servo::write() is done, the mapping will not be correct.

Fixes:#2308

The call to function Servo::write() in Servo::attach() must be doneafter Servo::min and Servo::max are configured - Servo::write() uses themin/max for mapping the passed value if the value is passed in degrees.Therefore if inital value in attach is set in degress and min/maxis not configured when call to Servo::write() is done, the mapping willnot be correct.Resolves:stm32duino#2308
Copy link
Member

@fpistmfpistm left a comment

Choose a reason for hiding this comment

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

LGTM.
Thanks@jan019.

@fpistmfpistm added bug 🐛Something isn't working fix 🩹Bug fix labelsMar 25, 2024
@fpistmfpistm added this to the2.8.0 milestoneMar 25, 2024
@fpistmfpistm merged commitf67f03b intostm32duino:mainMar 25, 2024
@fpistmfpistm removed the bug 🐛Something isn't working labelJan 4, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@fpistmfpistmfpistm approved these changes

Assignees
No one assigned
Labels
fix 🩹Bug fix
Projects
Milestone
2.8.0
Development

Successfully merging this pull request may close these issues.

Servo.attach() call to Servo::write() before min/max are configured leads to issue when writting angles in degrees
2 participants
@jan019@fpistm

[8]ページ先頭

©2009-2025 Movatter.jp