mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-21 16:18:29 -04:00
AP_InertialSensor: support BOARD_MATCH() for IMUs
This commit is contained in:
parent
bf2c043c23
commit
c1022ce4d0
@ -1002,6 +1002,10 @@ AP_InertialSensor::detect_backends(void)
|
||||
probe_count++; \
|
||||
} while (0)
|
||||
|
||||
// support for adding IMUs conditioned on board type
|
||||
#define BOARD_MATCH(board_type) AP_BoardConfig::get_board_type()==AP_BoardConfig::board_type
|
||||
#define ADD_BACKEND_BOARD_MATCH(board_match, x) do { if (board_match) { ADD_BACKEND(x); } } while(0)
|
||||
|
||||
// macro for use by HAL_INS_PROBE_LIST
|
||||
#define GET_I2C_DEVICE(bus, address) hal.i2c_mgr->get_device(bus, address)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user