From 0aee50b99e9e742aea3ec37aac2b43b642d4e829 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Mayoral=20Vilches?= Date: Tue, 5 Jan 2016 11:28:06 +0100 Subject: [PATCH] HAL: Add PXFmini board --- libraries/AP_HAL/AP_HAL_Boards.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/libraries/AP_HAL/AP_HAL_Boards.h b/libraries/AP_HAL/AP_HAL_Boards.h index f40bfc21d9..7a3988743f 100644 --- a/libraries/AP_HAL/AP_HAL_Boards.h +++ b/libraries/AP_HAL/AP_HAL_Boards.h @@ -36,6 +36,7 @@ #define HAL_BOARD_SUBTYPE_LINUX_ERLEBRAIN2 1009 #define HAL_BOARD_SUBTYPE_LINUX_BH 1010 #define HAL_BOARD_SUBTYPE_LINUX_QFLIGHT 1011 +#define HAL_BOARD_SUBTYPE_LINUX_PXFMINI 1012 /** HAL PX4 sub-types, starting at 2000 @@ -321,6 +322,17 @@ #define HAL_BARO_DEFAULT HAL_BARO_QFLIGHT #define HAL_COMPASS_DEFAULT HAL_COMPASS_QFLIGHT #define HAL_LINUX_UARTS_ON_TIMER_THREAD 1 +#elif CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_PXFMINI +#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 +#define HAL_GPIO_A_LED_PIN 24 +#define HAL_GPIO_B_LED_PIN 25 +#define HAL_GPIO_C_LED_PIN 16 +#define HAL_GPIO_LED_ON LOW +#define HAL_GPIO_LED_OFF HIGH #else #error "no Linux board subtype set" #endif