AP_HAL: added Zynq platform type

This commit is contained in:
Andrew Tridgell 2014-11-14 10:15:51 +11:00
parent 7f00dd413f
commit adcf994356
1 changed files with 8 additions and 0 deletions

View File

@ -30,6 +30,7 @@
#define HAL_BOARD_SUBTYPE_LINUX_ERLE 1001
#define HAL_BOARD_SUBTYPE_LINUX_PXF 1002
#define HAL_BOARD_SUBTYPE_LINUX_NAVIO 1003
#define HAL_BOARD_SUBTYPE_LINUX_ZYNQ 1004
/**
HAL PX4 sub-types, starting at 2000
@ -195,6 +196,13 @@
#define HAL_INS_DEFAULT HAL_INS_MPU9250
#define HAL_BARO_DEFAULT HAL_BARO_MS5611
#define HAL_COMPASS_DEFAULT HAL_COMPASS_HIL
#elif CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_ZYNQ
#define HAL_BOARD_LOG_DIRECTORY "/var/APM/logs"
#define HAL_BOARD_TERRAIN_DIRECTORY "/var/APM/terrain"
// Stub the sensors out for now, at least we can build and run
#define HAL_INS_DEFAULT HAL_INS_HIL
#define HAL_BARO_DEFAULT HAL_BARO_HIL
#define HAL_COMPASS_DEFAULT HAL_COMPASS_HIL
#else
#error "no Linux board subtype set"
#endif