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
Apply the same maximum control rates (1.0) in CLI and MSP #658
Conversation
The pid_tuning.html for class="rate-tpa", currently has max="2.55" for roll/pitch and yaw. These should be limited to max="1.0". It helps the user to appreciate the limits. Not sure if it's necessary to have extra insurance in firmware code. |
Previously it was possible to set roll/pitch rate > 1.0 using MSP, but not using the CLI. Roll/pitch rate > 1.0 is meaningless. TPA is also limited to 1.0.
44e4c06
to
828ec55
Compare
I figure that the Configurator is not the only consumer of the MSP API so it would be better to cover our bases. I've added the limit to TPA as well now. |
I was under the assumption that some people use > 1 rates. Can you ask/check on the rcgroups thread? |
If you examine annexCode() in mw.c L#170, you do not expect to end up with -ve values for prop2, when you are calculating with a datum of 100 i.e rates are meant to be between 0 and 100%, which translates to limits of 0 to 1.0. |
Roll/pitch rates >1.0 end up applying a negative factor of the PID correction (i.e. it makes the craft actively unstable), nobody would be using those. Yaw rate >1.0 does make sense but the CLI has always limited that to max 1.0 so I doubt many are using it. I'll ask on RCGroups. |
It was RC rate that I was thinking of, couldn't remember last night. |
Apply the same maximum control rates (1.0) in CLI and MSP
Fixed build issue for F1, and added dfu CLI command (for restart in D…
Flight modes cleanup
Previously it was possible to set roll/pitch rate > 1.0 using MSP, but not using the CLI. Roll/pitch rate > 1.0 is meaningless.