mirror of https://github.com/ArduPilot/ardupilot
AP_Baro: change UAVCAN_ENABLED to DRONECAN_ENABLED
This commit is contained in:
parent
d2882c79de
commit
8d21ef71d3
|
@ -613,7 +613,7 @@ void AP_Baro::init(void)
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#if AP_BARO_UAVCAN_ENABLED
|
||||
#if AP_BARO_DRONECAN_ENABLED
|
||||
// Detect UAVCAN Modules, try as many times as there are driver slots
|
||||
for (uint8_t i = 0; i < BARO_MAX_DRIVERS; i++) {
|
||||
ADD_BACKEND(AP_Baro_UAVCAN::probe(*this));
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#include "AP_Baro_DroneCAN.h"
|
||||
|
||||
#if AP_BARO_UAVCAN_ENABLED
|
||||
#if AP_BARO_DRONECAN_ENABLED
|
||||
|
||||
#include <AP_CANManager/AP_CANManager.h>
|
||||
#include <AP_BoardConfig/AP_BoardConfig.h>
|
||||
|
@ -174,4 +174,4 @@ void AP_Baro_UAVCAN::update(void)
|
|||
}
|
||||
}
|
||||
|
||||
#endif // AP_BARO_UAVCAN_ENABLED
|
||||
#endif // AP_BARO_DRONECAN_ENABLED
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#include "AP_Baro_Backend.h"
|
||||
|
||||
#if AP_BARO_UAVCAN_ENABLED
|
||||
#if AP_BARO_DRONECAN_ENABLED
|
||||
|
||||
#include <AP_DroneCAN/AP_DroneCAN.h>
|
||||
#if AP_TEST_DRONECAN_DRIVERS
|
||||
|
@ -49,4 +49,4 @@ private:
|
|||
static HAL_Semaphore _sem_registry;
|
||||
};
|
||||
|
||||
#endif // AP_BARO_UAVCAN_ENABLED
|
||||
#endif // AP_BARO_DRONECAN_ENABLED
|
||||
|
|
|
@ -77,6 +77,6 @@
|
|||
#define AP_BARO_SPL06_ENABLED AP_BARO_BACKEND_DEFAULT_ENABLED
|
||||
#endif
|
||||
|
||||
#ifndef AP_BARO_UAVCAN_ENABLED
|
||||
#define AP_BARO_UAVCAN_ENABLED (AP_BARO_BACKEND_DEFAULT_ENABLED && HAL_ENABLE_LIBUAVCAN_DRIVERS)
|
||||
#ifndef AP_BARO_DRONECAN_ENABLED
|
||||
#define AP_BARO_DRONECAN_ENABLED (AP_BARO_BACKEND_DEFAULT_ENABLED && HAL_ENABLE_LIBUAVCAN_DRIVERS)
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue