mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 02:18:29 -04:00
AP_HAL: added Zynq platform type
This commit is contained in:
parent
7f00dd413f
commit
adcf994356
@ -30,6 +30,7 @@
|
|||||||
#define HAL_BOARD_SUBTYPE_LINUX_ERLE 1001
|
#define HAL_BOARD_SUBTYPE_LINUX_ERLE 1001
|
||||||
#define HAL_BOARD_SUBTYPE_LINUX_PXF 1002
|
#define HAL_BOARD_SUBTYPE_LINUX_PXF 1002
|
||||||
#define HAL_BOARD_SUBTYPE_LINUX_NAVIO 1003
|
#define HAL_BOARD_SUBTYPE_LINUX_NAVIO 1003
|
||||||
|
#define HAL_BOARD_SUBTYPE_LINUX_ZYNQ 1004
|
||||||
|
|
||||||
/**
|
/**
|
||||||
HAL PX4 sub-types, starting at 2000
|
HAL PX4 sub-types, starting at 2000
|
||||||
@ -195,6 +196,13 @@
|
|||||||
#define HAL_INS_DEFAULT HAL_INS_MPU9250
|
#define HAL_INS_DEFAULT HAL_INS_MPU9250
|
||||||
#define HAL_BARO_DEFAULT HAL_BARO_MS5611
|
#define HAL_BARO_DEFAULT HAL_BARO_MS5611
|
||||||
#define HAL_COMPASS_DEFAULT HAL_COMPASS_HIL
|
#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
|
#else
|
||||||
#error "no Linux board subtype set"
|
#error "no Linux board subtype set"
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user