AP_HAL: Edge: add compass settings

Use HMC5883L as default before UAVCAN Linux support is in place
This commit is contained in:
Georgii Staroselskii 2017-05-25 18:40:18 +03:00 committed by Lucas De Marchi
parent ac6f7511bd
commit db9f427617
2 changed files with 4 additions and 1 deletions

View File

@ -106,6 +106,7 @@
#define HAL_COMPASS_NAVIO 15
#define HAL_COMPASS_AERO 16
#define HAL_COMPASS_OCPOC_ZYNQ 17
#define HAL_COMPASS_EDGE 18
/* Heat Types */
#define HAL_LINUX_HEAT_PWM 1

View File

@ -340,7 +340,9 @@
#define HAL_INS_MPU60x0_NAME_EXT "mpu60x0ext"
#define HAL_BARO_DEFAULT HAL_BARO_MS5611_SPI
#define HAL_BARO_MS5611_NAME "ms5611"
#define HAL_COMPASS_DEFAULT HAL_COMPASS_HIL
#define HAL_COMPASS_HMC5843_I2C_BUS 1
#define HAL_COMPASS_HMC5843_I2C_ADDR 0x1E
#define HAL_COMPASS_DEFAULT HAL_COMPASS_EDGE
/* HMC5843 can be an external compass */
#define HAL_COMPASS_HMC5843_I2C_BUS 1
#define HAL_COMPASS_HMC5843_I2C_ADDR 0x1E