Skip to content

Commit

Permalink
waf: add rate loop config abstraction that allows code to be elided o…
Browse files Browse the repository at this point in the history
…n non-copter builds
  • Loading branch information
andyp1per committed Aug 23, 2024
1 parent 4237bb7 commit a3a37b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Tools/ardupilotwaf/ap_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ def _vehicle_index(vehicle):
# note that AP_NavEKF3_core.h is needed for AP_NavEKF3_feature.h
_vehicle_macros = ['APM_BUILD_DIRECTORY', 'AP_BUILD_TARGET_NAME',
'APM_BUILD_TYPE', 'APM_BUILD_COPTER_OR_HELI',
'AP_NavEKF3_core.h', 'lua_generated_bindings.h']
'AP_NavEKF3_core.h', 'lua_generated_bindings.h',
'AP_InertialSensor_rate_config.h']
_macros_re = re.compile(r'\b(%s)\b' % '|'.join(_vehicle_macros))

# some cpp files are not available at the time we run this check so need to be
Expand Down Expand Up @@ -174,6 +175,7 @@ class ap_library_check_headers(Task.Task):
'libraries/AP_Scripting/lua_generated_bindings.h',
'libraries/AP_NavEKF3/AP_NavEKF3_feature.h',
'libraries/AP_LandingGear/AP_LandingGear_config.h',
'libraries/AP_InertialSensor/AP_InertialSensor_rate_config.h',
)
whitelist = tuple(os.path.join(*p.split('/')) for p in whitelist)

Expand Down

0 comments on commit a3a37b0

Please sign in to comment.