-
Notifications
You must be signed in to change notification settings - Fork 18k
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
AP_Motors6DOF: use its own rc_write, which allows trimming motor outputs #26300
Conversation
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.
Using output trimmed adds a dependency on the individual servo min and max params too. It just constrains, this would be a problem with default parameter values because MOT_PWM_MIN
and MOT_PWM_MAX
default to 1000 and 2000 where as SERVOx_MIN
and SERVOx_MAN
default to 1100 and 1900. So you would be loosing the top 20% of your range.
we actually do override those. but it would make MOT_MIN/MAX and MOT_REVERSE redundant... |
Yeah, the possibility of having conflicting ranges means the mixer will get confused, it might endup winding up I against the servo limit because it does not know the output is saturated. The other problem with unilaterally switching to Why not have users change to range |
I wasn't aware of this! nice. I'll check it out. thanks |
It turned out that |
Do you know if the other none standard PWM types work for sub? Dshot ect. It looks to me like it really should work, I think the setup is done in on sub the same way as the other vehicles. |
the only thing I noticed missing was |
Ah, we need to set servo type to angle not range I guess subs motors are always reversible? |
Sorry for the bad steer on range type, I have done a PR to add a new angle type which will respect trim. |
closing in favor of #26415 |
I was told some people out there sell ESCs with bad crystals or something that fail to detect 1500us properly.
I was also told "they calibrate it in the factory", but that doesn't seem to be quite true. These (bi-directional) ESCs end up centered at 1520 or sometimes more.
This allows the users to cope with these and other ESCs.
Tested and working.
should fix #23002