mirror of https://github.com/ArduPilot/ardupilot
AP_HAL_ChibiOS: allow rangefinder backends to be individually compiled in
This commit is contained in:
parent
d251c51ca1
commit
ce1bb906b7
|
@ -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
|
||||
|
||||
''')
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue