mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
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.set_log_baro_bit(MASK_LOG_IMU);
|
||||||
barometer.calibrate();
|
barometer.calibrate();
|
||||||
|
|
||||||
|
#if RANGEFINDER_ENABLED == ENABLED
|
||||||
// initialise rangefinder
|
// initialise rangefinder
|
||||||
init_rangefinder();
|
init_rangefinder();
|
||||||
|
#endif
|
||||||
|
|
||||||
#if HAL_PROXIMITY_ENABLED
|
#if HAL_PROXIMITY_ENABLED
|
||||||
// init proximity sensor
|
// init proximity sensor
|
||||||
|
Loading…
Reference in New Issue
Block a user