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

開放サーボ角度調整 #31

Merged
merged 1 commit into from
Mar 21, 2024
Merged

開放サーボ角度調整 #31

merged 1 commit into from
Mar 21, 2024

Conversation

771-8bit
Copy link
Member

SAMD XIAOのサーボ基板で調整した値で,RP2040のServo.hを叩くと違う角度になったのでバルブのときのプログラムを使って改修

}

static uint16_t set_pwm_duty(uint16_t period_cycle, float cycletime, float hightime) {
float count_pms = (float)period_cycle / cycletime * hightime;

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Using C-style cast. Use static_cast(...) instead [readability/casting] [4]

@771-8bit 771-8bit requested a review from nihinihikun March 20, 2024 05:56
@771-8bit
Copy link
Member Author

@nihinihikun (mainブランチプロテクトしてるので)Approveお願い

@771-8bit 771-8bit merged commit 94e4ef5 into main Mar 21, 2024
7 checks passed
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