mirror of https://github.com/ArduPilot/ardupilot
AP_HAL: added subtype for PX4 FMUv4
This commit is contained in:
parent
254b71468c
commit
5db65cdb6d
|
@ -40,6 +40,7 @@
|
||||||
/* HAL PX4 sub-types, starting at 2000 */
|
/* HAL PX4 sub-types, starting at 2000 */
|
||||||
#define HAL_BOARD_SUBTYPE_PX4_V1 2000
|
#define HAL_BOARD_SUBTYPE_PX4_V1 2000
|
||||||
#define HAL_BOARD_SUBTYPE_PX4_V2 2001
|
#define HAL_BOARD_SUBTYPE_PX4_V2 2001
|
||||||
|
#define HAL_BOARD_SUBTYPE_PX4_V4 2002
|
||||||
|
|
||||||
/* HAL VRBRAIN sub-types, starting at 4000 */
|
/* HAL VRBRAIN sub-types, starting at 4000 */
|
||||||
#define HAL_BOARD_SUBTYPE_VRBRAIN_V45 4000
|
#define HAL_BOARD_SUBTYPE_VRBRAIN_V45 4000
|
||||||
|
|
|
@ -14,11 +14,16 @@
|
||||||
#ifdef CONFIG_ARCH_BOARD_PX4FMU_V1
|
#ifdef CONFIG_ARCH_BOARD_PX4FMU_V1
|
||||||
#define CONFIG_HAL_BOARD_SUBTYPE HAL_BOARD_SUBTYPE_PX4_V1
|
#define CONFIG_HAL_BOARD_SUBTYPE HAL_BOARD_SUBTYPE_PX4_V1
|
||||||
#define HAL_STORAGE_SIZE 8192
|
#define HAL_STORAGE_SIZE 8192
|
||||||
#else
|
#elif defined(CONFIG_ARCH_BOARD_PX4FMU_V2)
|
||||||
#define CONFIG_HAL_BOARD_SUBTYPE HAL_BOARD_SUBTYPE_PX4_V2
|
#define CONFIG_HAL_BOARD_SUBTYPE HAL_BOARD_SUBTYPE_PX4_V2
|
||||||
#define HAL_STORAGE_SIZE 16384
|
#define HAL_STORAGE_SIZE 16384
|
||||||
#define HAL_HAVE_IMU_HEATER 1 // for Pixhawk2
|
#define HAL_HAVE_IMU_HEATER 1 // for Pixhawk2
|
||||||
#define HAL_IMU_TEMP_DEFAULT -1 // disabled
|
#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
|
#endif
|
||||||
|
|
||||||
#define HAL_GPIO_A_LED_PIN 27
|
#define HAL_GPIO_A_LED_PIN 27
|
||||||
|
|
Loading…
Reference in New Issue