Copter: The preprocessor determines whether rangefinder initialization is possible
This commit is contained in:
parent
380a1fe738
commit
79a59d2739
@ -153,8 +153,10 @@ void Copter::init_ardupilot()
|
||||
barometer.set_log_baro_bit(MASK_LOG_IMU);
|
||||
barometer.calibrate();
|
||||
|
||||
#if RANGEFINDER_ENABLED == ENABLED
|
||||
// initialise rangefinder
|
||||
init_rangefinder();
|
||||
#endif
|
||||
|
||||
#if HAL_PROXIMITY_ENABLED
|
||||
// init proximity sensor
|
||||
|
Loading…
Reference in New Issue
Block a user