AP_HAL_ChibiOS: allow rangefinder backends to be individually compiled in

This commit is contained in:
Peter Barker 2022-03-12 21:37:28 +11:00 committed by Andrew Tridgell
parent d251c51ca1
commit ce1bb906b7
2 changed files with 9 additions and 0 deletions

View File

@ -2842,6 +2842,11 @@ def add_apperiph_defaults(f):
#define AP_AIRSPEED_ANALOG_ENABLED 0
#endif
// disable various rangefinder backends
#define AP_RANGEFINDER_ANALOG_ENABLED 0
#define AP_RANGEFINDER_HC_SR04_ENABLED 0
#define AP_RANGEFINDER_PWM_ENABLED 0
''')

View File

@ -121,4 +121,8 @@ define COMPASS_MAX_SENSORS 1
define BARO_MAX_INSTANCES 1
define INS_MAX_INSTANCES 1
# SkyViper doesn't have any rangefinder, but might get mavlink?
define AP_RANGEFINDER_BACKEND_DEFAULT_ENABLED 0
define AP_RANGEFINDER_MAVLINK_ENABLED 1
AUTOBUILD_TARGETS Copter