AP_HAL: add defines for Intel Aero

This commit is contained in:
José Roberto de Souza 2016-05-31 15:49:07 -03:00 committed by Lucas De Marchi
parent b6c0e11200
commit 0b0be31a29

View File

@ -36,6 +36,7 @@
#define HAL_BOARD_SUBTYPE_LINUX_PXFMINI 1012 #define HAL_BOARD_SUBTYPE_LINUX_PXFMINI 1012
#define HAL_BOARD_SUBTYPE_LINUX_NAVIO2 1013 #define HAL_BOARD_SUBTYPE_LINUX_NAVIO2 1013
#define HAL_BOARD_SUBTYPE_LINUX_DISCO 1014 #define HAL_BOARD_SUBTYPE_LINUX_DISCO 1014
#define HAL_BOARD_SUBTYPE_LINUX_AERO 1015
/** /**
HAL PX4 sub-types, starting at 2000 HAL PX4 sub-types, starting at 2000
@ -70,6 +71,7 @@
#define HAL_INS_QFLIGHT 15 #define HAL_INS_QFLIGHT 15
#define HAL_INS_QURT 16 #define HAL_INS_QURT 16
#define HAL_INS_BBBMINI 17 #define HAL_INS_BBBMINI 17
#define HAL_INS_AERO 18
// barometer driver types // barometer driver types
#define HAL_BARO_BMP085 1 #define HAL_BARO_BMP085 1
@ -99,6 +101,7 @@
#define HAL_COMPASS_BBBMINI 13 #define HAL_COMPASS_BBBMINI 13
#define HAL_COMPASS_NAVIO2 14 #define HAL_COMPASS_NAVIO2 14
#define HAL_COMPASS_NAVIO 15 #define HAL_COMPASS_NAVIO 15
#define HAL_COMPASS_AERO 16
// Heat Types // Heat Types
#define HAL_LINUX_HEAT_PWM 1 #define HAL_LINUX_HEAT_PWM 1
@ -443,6 +446,16 @@
#define HAL_GPIO_C_LED_PIN 16 #define HAL_GPIO_C_LED_PIN 16
#define HAL_GPIO_LED_ON LOW #define HAL_GPIO_LED_ON LOW
#define HAL_GPIO_LED_OFF HIGH #define HAL_GPIO_LED_OFF HIGH
#elif CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_AERO
#define HAL_BOARD_LOG_DIRECTORY "/var/APM/logs"
#define HAL_BOARD_TERRAIN_DIRECTORY "/var/APM/terrain"
#define HAL_INS_DEFAULT HAL_INS_AERO
#define HAL_BARO_DEFAULT HAL_BARO_MS5611_I2C
#define HAL_BARO_MS5611_I2C_BUS 2
#define HAL_BARO_MS5611_I2C_ADDR 0x76
#define HAL_COMPASS_DEFAULT HAL_COMPASS_AERO
#define HAL_COMPASS_BMM150_I2C_BUS 2
#define HAL_COMPASS_BMM150_I2C_ADDR 0x12
#else #else
#error "no Linux board subtype set" #error "no Linux board subtype set"
#endif #endif