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

create a HAL_QUADPLANE_ENABLED define #17941

Merged
merged 2 commits into from Sep 14, 2021

Conversation

peterbarker
Copy link
Contributor

 enabled: bin/arduplane  1588020  2428  194388  1784836
disabled: bin/arduplane  1454620  2428  194388  1651436
>>> 1588020 - 1454620
133400

This is an extremely invasive patch.

I think it's worth considering creating a quadplane dummy object instead of modifying all the places quadplane. is used. Still have the define, 'though.

(control_mode == &mode_rtl && quadplane.available() && quadplane.rtl_mode == QuadPlane::RTL_MODE::SWITCH_QRTL)) {
current_loc.get_distance(next_WP_loc) > radius*3)
#if HAL_QUADPLANE_ENABLED
|| (control_mode == &mode_rtl && quadplane.available() && quadplane.rtl_mode == QuadPlane::RTL_MODE::SWITCH_QRTL)
Copy link
Contributor

Choose a reason for hiding this comment

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

IF_QUADPLANE()
IF_QUADPLANE(control_mode == &mode_rtl && quadplane.available() && quadplane.rtl_mode == quadPlane::RTL_MODE::SWITCH_QRTL)
#if HAL_QUADLPLANE_ENABLE
#define IF_QUADPLANE(x) (x)
#18540
#define IF_QUADPLANE(x) (false)
#endif

@peterbarker peterbarker force-pushed the pr/hal-quadplane-enabled branch 2 times, most recently from 4187197 to fe3e6eb Compare September 10, 2021 06:43
@peterbarker peterbarker marked this pull request as ready for review September 10, 2021 06:44
@peterbarker peterbarker force-pushed the pr/hal-quadplane-enabled branch 3 times, most recently from a30c108 to 53bd2cb Compare September 12, 2021 02:32
@peterbarker peterbarker merged commit 3d34e06 into ArduPilot:master Sep 14, 2021
@peterbarker peterbarker deleted the pr/hal-quadplane-enabled branch September 14, 2021 01:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants