mirror of https://github.com/ArduPilot/ardupilot
HAL_ChibiOS: override COMPASS_AUTO_ROT on several boards
This commit is contained in:
parent
cdae1606ce
commit
40a0decbc2
|
@ -123,6 +123,8 @@ define HAL_BARO_MS5611_I2C_BUS 0
|
||||||
define HAL_COMPASS_DEFAULT HAL_COMPASS_HMC5843
|
define HAL_COMPASS_DEFAULT HAL_COMPASS_HMC5843
|
||||||
define HAL_COMPASS_HMC5843_I2C_BUS 0
|
define HAL_COMPASS_HMC5843_I2C_BUS 0
|
||||||
define HAL_COMPASS_HMC5843_ROTATION ROTATION_YAW_270
|
define HAL_COMPASS_HMC5843_ROTATION ROTATION_YAW_270
|
||||||
|
define HAL_PROBE_EXTERNAL_I2C_COMPASSES
|
||||||
|
define HAL_COMPASS_AUTO_ROT_DEFAULT 2
|
||||||
|
|
||||||
define HAL_EXT_COMPASS_HMC5843_I2C_BUS 1
|
define HAL_EXT_COMPASS_HMC5843_I2C_BUS 1
|
||||||
|
|
||||||
|
|
|
@ -126,6 +126,7 @@ define ALLOW_ARM_NO_COMPASS
|
||||||
define HAL_COMPASS_DEFAULT HAL_COMPASS_NONE
|
define HAL_COMPASS_DEFAULT HAL_COMPASS_NONE
|
||||||
define HAL_PROBE_EXTERNAL_I2C_COMPASSES
|
define HAL_PROBE_EXTERNAL_I2C_COMPASSES
|
||||||
define HAL_I2C_INTERNAL_MASK 0
|
define HAL_I2C_INTERNAL_MASK 0
|
||||||
|
define HAL_COMPASS_AUTO_ROT_DEFAULT 2
|
||||||
|
|
||||||
# baro is a bmp280 on i2c
|
# baro is a bmp280 on i2c
|
||||||
define HAL_BARO_DEFAULT HAL_BARO_BMP280_I2C
|
define HAL_BARO_DEFAULT HAL_BARO_BMP280_I2C
|
||||||
|
|
|
@ -123,6 +123,7 @@ define ALLOW_ARM_NO_COMPASS
|
||||||
define HAL_COMPASS_DEFAULT HAL_COMPASS_NONE
|
define HAL_COMPASS_DEFAULT HAL_COMPASS_NONE
|
||||||
define HAL_PROBE_EXTERNAL_I2C_COMPASSES
|
define HAL_PROBE_EXTERNAL_I2C_COMPASSES
|
||||||
define HAL_I2C_INTERNAL_MASK 0
|
define HAL_I2C_INTERNAL_MASK 0
|
||||||
|
define HAL_COMPASS_AUTO_ROT_DEFAULT 2
|
||||||
|
|
||||||
# probe for an invensense IMU
|
# probe for an invensense IMU
|
||||||
define HAL_INS_DEFAULT HAL_INS_MPU60XX_SPI
|
define HAL_INS_DEFAULT HAL_INS_MPU60XX_SPI
|
||||||
|
|
|
@ -175,6 +175,7 @@ define ALLOW_ARM_NO_COMPASS
|
||||||
define HAL_COMPASS_DEFAULT HAL_COMPASS_NONE
|
define HAL_COMPASS_DEFAULT HAL_COMPASS_NONE
|
||||||
define HAL_PROBE_EXTERNAL_I2C_COMPASSES
|
define HAL_PROBE_EXTERNAL_I2C_COMPASSES
|
||||||
define HAL_I2C_INTERNAL_MASK 0
|
define HAL_I2C_INTERNAL_MASK 0
|
||||||
|
define HAL_COMPASS_AUTO_ROT_DEFAULT 2
|
||||||
|
|
||||||
define OSD_ENABLED ENABLED
|
define OSD_ENABLED ENABLED
|
||||||
ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin
|
ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin
|
||||||
|
|
|
@ -142,6 +142,7 @@ define ALLOW_ARM_NO_COMPASS
|
||||||
define HAL_COMPASS_DEFAULT HAL_COMPASS_NONE
|
define HAL_COMPASS_DEFAULT HAL_COMPASS_NONE
|
||||||
define HAL_PROBE_EXTERNAL_I2C_COMPASSES
|
define HAL_PROBE_EXTERNAL_I2C_COMPASSES
|
||||||
define HAL_I2C_INTERNAL_MASK 0
|
define HAL_I2C_INTERNAL_MASK 0
|
||||||
|
define HAL_COMPASS_AUTO_ROT_DEFAULT 2
|
||||||
|
|
||||||
define HAL_BARO_DEFAULT HAL_BARO_BMP280_I2C
|
define HAL_BARO_DEFAULT HAL_BARO_BMP280_I2C
|
||||||
define HAL_BARO_BMP280_BUS 0
|
define HAL_BARO_BMP280_BUS 0
|
||||||
|
|
|
@ -127,6 +127,7 @@ define ALLOW_ARM_NO_COMPASS
|
||||||
define HAL_COMPASS_DEFAULT HAL_COMPASS_NONE
|
define HAL_COMPASS_DEFAULT HAL_COMPASS_NONE
|
||||||
define HAL_PROBE_EXTERNAL_I2C_COMPASSES
|
define HAL_PROBE_EXTERNAL_I2C_COMPASSES
|
||||||
define HAL_I2C_INTERNAL_MASK 0
|
define HAL_I2C_INTERNAL_MASK 0
|
||||||
|
define HAL_COMPASS_AUTO_ROT_DEFAULT 2
|
||||||
|
|
||||||
define HAL_BARO_DEFAULT HAL_BARO_BMP280_SPI
|
define HAL_BARO_DEFAULT HAL_BARO_BMP280_SPI
|
||||||
|
|
||||||
|
|
|
@ -86,9 +86,11 @@ define HAL_BARO_DEFAULT HAL_BARO_MS5611_I2C
|
||||||
define HAL_BARO_MS5611_I2C_BUS 0
|
define HAL_BARO_MS5611_I2C_BUS 0
|
||||||
define HAL_BARO_MS5611_I2C_ADDR 0x77
|
define HAL_BARO_MS5611_I2C_ADDR 0x77
|
||||||
|
|
||||||
define HAL_COMPASS_DEFAULT HAL_COMPASS_HMC5843
|
define ALLOW_ARM_NO_COMPASS
|
||||||
define HAL_COMPASS_HMC5843_I2C_BUS 0
|
define HAL_COMPASS_DEFAULT HAL_COMPASS_NONE
|
||||||
define HAL_COMPASS_HMC5843_I2C_ADDR 0x1E
|
define HAL_PROBE_EXTERNAL_I2C_COMPASSES
|
||||||
|
define HAL_I2C_INTERNAL_MASK 0
|
||||||
|
define HAL_COMPASS_AUTO_ROT_DEFAULT 2
|
||||||
|
|
||||||
define STORAGE_FLASH_PAGE 1
|
define STORAGE_FLASH_PAGE 1
|
||||||
define HAL_STORAGE_SIZE 15360
|
define HAL_STORAGE_SIZE 15360
|
||||||
|
|
|
@ -119,5 +119,6 @@ define ALLOW_ARM_NO_COMPASS
|
||||||
define HAL_COMPASS_DEFAULT HAL_COMPASS_NONE
|
define HAL_COMPASS_DEFAULT HAL_COMPASS_NONE
|
||||||
define HAL_PROBE_EXTERNAL_I2C_COMPASSES
|
define HAL_PROBE_EXTERNAL_I2C_COMPASSES
|
||||||
define HAL_I2C_INTERNAL_MASK 0
|
define HAL_I2C_INTERNAL_MASK 0
|
||||||
|
define HAL_COMPASS_AUTO_ROT_DEFAULT 2
|
||||||
|
|
||||||
define MAG_BOARD_ORIENTATION ROTATION_YAW_180
|
define MAG_BOARD_ORIENTATION ROTATION_YAW_180
|
||||||
|
|
|
@ -248,6 +248,7 @@ define HAL_WITH_RAMTRON 1
|
||||||
define HAL_BARO_DEFAULT HAL_BARO_MS5611_SPI
|
define HAL_BARO_DEFAULT HAL_BARO_MS5611_SPI
|
||||||
|
|
||||||
define HAL_COMPASS_DEFAULT HAL_COMPASS_NONE
|
define HAL_COMPASS_DEFAULT HAL_COMPASS_NONE
|
||||||
|
define HAL_COMPASS_AUTO_ROT_DEFAULT 2
|
||||||
|
|
||||||
DMA_PRIORITY SDMMC* UART8* ADC* SPI* TIM*
|
DMA_PRIORITY SDMMC* UART8* ADC* SPI* TIM*
|
||||||
|
|
||||||
|
|
|
@ -195,3 +195,5 @@ define HAL_BATT_CURR_SCALE 17.0
|
||||||
|
|
||||||
# 12 PWM available by default
|
# 12 PWM available by default
|
||||||
define BOARD_PWM_COUNT_DEFAULT 12
|
define BOARD_PWM_COUNT_DEFAULT 12
|
||||||
|
|
||||||
|
define HAL_COMPASS_AUTO_ROT_DEFAULT 2
|
||||||
|
|
|
@ -116,6 +116,7 @@ define HAL_BARO_DEFAULT HAL_BARO_LPS22H_SPI
|
||||||
define HAL_INS_DEFAULT HAL_INS_MPU60XX_SPI
|
define HAL_INS_DEFAULT HAL_INS_MPU60XX_SPI
|
||||||
define HAL_INS_DEFAULT_ROTATION ROTATION_PITCH_180
|
define HAL_INS_DEFAULT_ROTATION ROTATION_PITCH_180
|
||||||
define HAL_COMPASS_DEFAULT HAL_COMPASS_QMC5883L
|
define HAL_COMPASS_DEFAULT HAL_COMPASS_QMC5883L
|
||||||
|
define HAL_COMPASS_AUTO_ROT_DEFAULT 2
|
||||||
|
|
||||||
define HAL_BOARD_LOG_DIRECTORY "/APM/LOGS"
|
define HAL_BOARD_LOG_DIRECTORY "/APM/LOGS"
|
||||||
|
|
||||||
|
|
|
@ -106,6 +106,7 @@ define ALLOW_ARM_NO_COMPASS
|
||||||
define HAL_COMPASS_DEFAULT HAL_COMPASS_NONE
|
define HAL_COMPASS_DEFAULT HAL_COMPASS_NONE
|
||||||
define HAL_PROBE_EXTERNAL_I2C_COMPASSES
|
define HAL_PROBE_EXTERNAL_I2C_COMPASSES
|
||||||
define HAL_I2C_INTERNAL_MASK 0
|
define HAL_I2C_INTERNAL_MASK 0
|
||||||
|
define HAL_COMPASS_AUTO_ROT_DEFAULT 2
|
||||||
|
|
||||||
define STORAGE_FLASH_PAGE 1
|
define STORAGE_FLASH_PAGE 1
|
||||||
define HAL_STORAGE_SIZE 15360
|
define HAL_STORAGE_SIZE 15360
|
||||||
|
|
|
@ -123,6 +123,7 @@ define HAL_COMPASS_DEFAULT HAL_COMPASS_HMC5843
|
||||||
define HAL_COMPASS_HMC5843_I2C_BUS 0
|
define HAL_COMPASS_HMC5843_I2C_BUS 0
|
||||||
define HAL_COMPASS_HMC5843_I2C_ADDR 0x1E
|
define HAL_COMPASS_HMC5843_I2C_ADDR 0x1E
|
||||||
define HAL_COMPASS_HMC5843_ROTATION ROTATION_YAW_270
|
define HAL_COMPASS_HMC5843_ROTATION ROTATION_YAW_270
|
||||||
|
define HAL_COMPASS_AUTO_ROT_DEFAULT 2
|
||||||
|
|
||||||
define HAL_BARO_DEFAULT HAL_BARO_MS5611_I2C
|
define HAL_BARO_DEFAULT HAL_BARO_MS5611_I2C
|
||||||
define HAL_BARO_MS5611_I2C_BUS 0
|
define HAL_BARO_MS5611_I2C_BUS 0
|
||||||
|
|
|
@ -127,7 +127,9 @@ FLASH_RESERVE_START_KB 64
|
||||||
|
|
||||||
define HAL_INS_DEFAULT HAL_INS_MPU9250_SPI
|
define HAL_INS_DEFAULT HAL_INS_MPU9250_SPI
|
||||||
define HAL_COMPASS_DEFAULT HAL_COMPASS_AK8963_MPU9250
|
define HAL_COMPASS_DEFAULT HAL_COMPASS_AK8963_MPU9250
|
||||||
|
define HAL_PROBE_EXTERNAL_I2C_COMPASSES
|
||||||
|
define HAL_I2C_INTERNAL_MASK 0
|
||||||
|
define HAL_COMPASS_AUTO_ROT_DEFAULT 2
|
||||||
|
|
||||||
# SPI devices
|
# SPI devices
|
||||||
SPIDEV mpu9250 SPI1 DEVID4 MPU_CS MODE3 1*MHZ 4*MHZ
|
SPIDEV mpu9250 SPI1 DEVID4 MPU_CS MODE3 1*MHZ 4*MHZ
|
||||||
|
|
Loading…
Reference in New Issue