mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 09:58:28 -04:00
HAL: Add PXFmini board
This commit is contained in:
parent
b5a364504a
commit
0aee50b99e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user