AP_HAL: added subtype for PX4 FMUv4

This commit is contained in:
Andrew Tridgell 2016-11-03 09:34:36 +11:00
parent 254b71468c
commit 5db65cdb6d
2 changed files with 7 additions and 1 deletions

View File

@ -40,6 +40,7 @@
/* HAL PX4 sub-types, starting at 2000 */
#define HAL_BOARD_SUBTYPE_PX4_V1 2000
#define HAL_BOARD_SUBTYPE_PX4_V2 2001
#define HAL_BOARD_SUBTYPE_PX4_V4 2002
/* HAL VRBRAIN sub-types, starting at 4000 */
#define HAL_BOARD_SUBTYPE_VRBRAIN_V45 4000

View File

@ -14,11 +14,16 @@
#ifdef CONFIG_ARCH_BOARD_PX4FMU_V1
#define CONFIG_HAL_BOARD_SUBTYPE HAL_BOARD_SUBTYPE_PX4_V1
#define HAL_STORAGE_SIZE 8192
#else
#elif defined(CONFIG_ARCH_BOARD_PX4FMU_V2)
#define CONFIG_HAL_BOARD_SUBTYPE HAL_BOARD_SUBTYPE_PX4_V2
#define HAL_STORAGE_SIZE 16384
#define HAL_HAVE_IMU_HEATER 1 // for Pixhawk2
#define HAL_IMU_TEMP_DEFAULT -1 // disabled
#elif defined(CONFIG_ARCH_BOARD_PX4FMU_V4)
#define CONFIG_HAL_BOARD_SUBTYPE HAL_BOARD_SUBTYPE_PX4_V4
#define HAL_STORAGE_SIZE 16384
#else
#error "Unknown PX4 board type"
#endif
#define HAL_GPIO_A_LED_PIN 27