From a6f62c208e6febb58b13ca78bfd6cfafcae7739f Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 10 Jul 2015 10:22:59 +1000 Subject: [PATCH] AP_HAL: added bebop Linux board type --- libraries/AP_HAL/AP_HAL_Boards.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/libraries/AP_HAL/AP_HAL_Boards.h b/libraries/AP_HAL/AP_HAL_Boards.h index 00977bf70b..475daf6686 100644 --- a/libraries/AP_HAL/AP_HAL_Boards.h +++ b/libraries/AP_HAL/AP_HAL_Boards.h @@ -32,6 +32,7 @@ #define HAL_BOARD_SUBTYPE_LINUX_NAVIO 1003 #define HAL_BOARD_SUBTYPE_LINUX_ZYNQ 1004 #define HAL_BOARD_SUBTYPE_LINUX_BBBMINI 1005 +#define HAL_BOARD_SUBTYPE_LINUX_BEBOP 1006 /** HAL PX4 sub-types, starting at 2000 @@ -207,7 +208,13 @@ #define HAL_BOARD_TERRAIN_DIRECTORY "/var/APM/terrain" #define HAL_INS_DEFAULT HAL_INS_MPU9250 #define HAL_BARO_DEFAULT HAL_BARO_MS5611_SPI -#define HAL_COMPASS_DEFAULT HAL_COMPASS_AK8963_MPU9250 +#define HAL_COMPASS_DEFAULT HAL_COMPASS_AK8963_MPU9250 +#elif CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_BEBOP +#define HAL_BOARD_LOG_DIRECTORY "/var/APM/logs" +#define HAL_BOARD_TERRAIN_DIRECTORY "/var/APM/terrain" +#define HAL_INS_DEFAULT HAL_INS_MPU9250 +#define HAL_BARO_DEFAULT HAL_BARO_MS5611_SPI +#define HAL_COMPASS_DEFAULT HAL_COMPASS_AK8963_MPU9250 #elif CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_NAVIO #define HAL_BOARD_LOG_DIRECTORY "/var/APM/logs" #define HAL_BOARD_TERRAIN_DIRECTORY "/var/APM/terrain"