AP_HAL: setup for building ucavcan on FMUv3 but not FMUv2
save a lot of flash space on FMUv2
This commit is contained in:
parent
bc304a21a2
commit
29bc07f410
@ -169,3 +169,7 @@
|
||||
#define HAL_COMPASS_HMC5843_I2C_ADDR 0x1E
|
||||
#endif
|
||||
|
||||
#ifndef HAL_WITH_UAVCAN
|
||||
#define HAL_WITH_UAVCAN 0
|
||||
#endif
|
||||
|
||||
|
@ -24,9 +24,11 @@
|
||||
#define HAL_STORAGE_SIZE 16384
|
||||
#define HAL_HAVE_IMU_HEATER 1 // for Pixhawk2
|
||||
#define HAL_IMU_TEMP_DEFAULT -1 // disabled
|
||||
#define HAL_WITH_UAVCAN 1
|
||||
#elif defined(CONFIG_ARCH_BOARD_PX4FMU_V4)
|
||||
#define CONFIG_HAL_BOARD_SUBTYPE HAL_BOARD_SUBTYPE_PX4_V4
|
||||
#define HAL_STORAGE_SIZE 16384
|
||||
#define HAL_WITH_UAVCAN 1
|
||||
#else
|
||||
#error "Unknown PX4 board type"
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user