AP_HAL: initial FMUv4pro support

This commit is contained in:
Kevin Lopez Alvarez 2017-07-15 15:12:39 +10:00 committed by Randy Mackay
parent 5dcb9544ae
commit 905b34f84b
2 changed files with 7 additions and 1 deletions

View File

@ -44,6 +44,7 @@
#define HAL_BOARD_SUBTYPE_PX4_V4 2002
#define HAL_BOARD_SUBTYPE_PX4_V3 2003
#define HAL_BOARD_SUBTYPE_PX4_AEROFC_V1 2004
#define HAL_BOARD_SUBTYPE_PX4_V4PRO 2005
/* HAL VRBRAIN sub-types, starting at 4000 */
#define HAL_BOARD_SUBTYPE_VRBRAIN_V45 4000

View File

@ -30,7 +30,11 @@
#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
#define HAL_WITH_UAVCAN 1
#elif defined(CONFIG_ARCH_BOARD_PX4FMU_V4PRO)
#define CONFIG_HAL_BOARD_SUBTYPE HAL_BOARD_SUBTYPE_PX4_V4PRO
#define HAL_STORAGE_SIZE 16384
#define HAL_WITH_UAVCAN 1
#elif defined(CONFIG_ARCH_BOARD_AEROFC_V1)
#define CONFIG_HAL_BOARD_SUBTYPE HAL_BOARD_SUBTYPE_PX4_AEROFC_V1
#define HAL_STORAGE_SIZE 16384
@ -71,6 +75,7 @@
#define HAL_INS_ICM20608_EXT_NAME "icm20608_ext"
#define HAL_COMPASS_HMC5843_NAME "hmc5843"
#define HAL_COMPASS_LIS3MDL_NAME "lis3mdl"
/* px4fmu-v1 */
#ifdef CONFIG_ARCH_BOARD_PX4FMU_V1