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
Soaring: Use RCX_OPTION #14815
Soaring: Use RCX_OPTION #14815
Conversation
PR for wiki update is here |
thanks! |
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.
The title of this PR is kind of bad; the change to using a channel option is excellent, but kind of besides the point of this PR.
Changing to use the channel option should be a straight-forward change - the changes in the soaring library are rather non-trivial :-)
The changes don't look too intertwined - is it reasonable to split this into two PRs?
43f78cc
to
5694f38
Compare
I have dropped the refactor to make this one easier to review as Peter suggested. I'll open a separate PR for that. |
On Thu, 16 Jul 2020, Samuel Tabor wrote:
Looks like DISABLED has been expanded as a macro to 0?
Yup. One of the nastier wrinkles in our codebase; "ENABLED" and
"DISABLED" are defined in the vehicle's defines.h which pollutes
*everything*.
|
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.
Perhaps some squashing-down of the commits would be nice in here.
5694f38
to
c459d28
Compare
Thanks, now squashed. |
This simplifies soaring.cpp somewhat and converts from using SOAR_ENABLE_CH to having soaring as a RC option. The parameter is converted if configured.