-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
pwm rates can not be set more than 400hz #13762
Comments
It seems that solution can apply this chunk of code in registers.c file
|
The standard in RC PWM control is a 1ms pulse indicating "low" and a 2 ms pulse indicating "high". A 400 Hz update rate gives a 2.5 ms period. Anything much more than a 400 Hz update rate would not allow a 2ms pulse to get through. That is why the PWM refresh rate is capped at 400 Hz. |
This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions. |
I'm right now facing the same issue trying to use a 500Hz esc on our multicopter. I mainly tried every possible workaround without finding a solution. |
My bad. I confirm the Pam rate is capped in the code showed by feemi. |
Describe the bug
pwm rate parameters range is -1 to 2000 however you can not set more than 400hz. It sets to 400 if you try to set more than this value.
To Reproduce
Steps to reproduce the behavior:
open mavlink console
run
pwm rate -r 600 -c 1234
commandrun
pwm info
commandSee values limited to 400 hz
Expected behavior
pwm rates should be set as desired.
Log Files and Screenshots
Add screenshots to help explain your problem.
Drone (please complete the following information):
The text was updated successfully, but these errors were encountered: