-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
base: master
Are you sure you want to change the base?
Guard against compilation errors when features missing #25150
Conversation
libraries/AP_AHRS/AP_AHRS_Backend.h
Outdated
@@ -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 |
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.
under what circumstances can we have AHRS without INS?
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.
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.
d7b047c
to
1ee7e09
Compare
26b20d9
to
7fb7450
Compare
extracted from #24453 to make that one easier to reason about