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

Guard against compilation errors when features missing #25150

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

peterbarker
Copy link
Contributor

extracted from #24453 to make that one easier to reason about

@@ -76,12 +76,20 @@ class AP_AHRS_Backend

// get the index of the current primary accelerometer sensor
virtual uint8_t get_primary_accel_index(void) const {
#if AP_INERTIALSENSOR_ENABLED
Copy link
Contributor

Choose a reason for hiding this comment

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

under what circumstances can we have AHRS without INS?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ExternalAHRS is one example. Probably the only example by definition.

But I made these change because we're in the header file, and didn't wish to consider the implications of moving this implementation into the .cpp file in terms of flash and performance.

@peterbarker peterbarker force-pushed the pr/random-ins-branch-cleanups branch 4 times, most recently from d7b047c to 1ee7e09 Compare October 23, 2023 00:19
@peterbarker peterbarker force-pushed the pr/random-ins-branch-cleanups branch from 26b20d9 to 7fb7450 Compare September 1, 2024 23:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants