AP_HAL: define rotations for the MPU9250 in board/linux.h
This commit is contained in:
parent
147b253e65
commit
38a1f51b53
@ -17,6 +17,11 @@
|
||||
#define HAL_BOARD_LOG_DIRECTORY "/var/APM/logs"
|
||||
#define HAL_BOARD_TERRAIN_DIRECTORY "/var/APM/terrain"
|
||||
#define HAL_INS_DEFAULT HAL_INS_MPU9250_SPI
|
||||
#if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_PXF
|
||||
#define HAL_INS_DEFAULT_ROTATION ROTATION_ROLL_180_YAW_270
|
||||
#else
|
||||
#define HAL_INS_DEFAULT_ROTATION ROTATION_ROLL_180_YAW_90
|
||||
#endif
|
||||
#define HAL_INS_MPU9250_NAME "mpu9250"
|
||||
#define HAL_BARO_DEFAULT HAL_BARO_MS5611_SPI
|
||||
#define HAL_BARO_MS5611_NAME "ms5611"
|
||||
@ -140,6 +145,7 @@
|
||||
#define HAL_BOARD_LOG_DIRECTORY "/var/APM/logs"
|
||||
#define HAL_BOARD_TERRAIN_DIRECTORY "/var/APM/terrain"
|
||||
#define HAL_INS_DEFAULT HAL_INS_MPU9250_SPI
|
||||
#define HAL_INS_DEFAULT_ROTATION ROTATION_NONE
|
||||
#define HAL_INS_MPU9250_NAME "mpu9250"
|
||||
#define HAL_BARO_DEFAULT HAL_BARO_MS5611_I2C
|
||||
#define HAL_BARO_MS5611_I2C_BUS 1
|
||||
@ -152,6 +158,7 @@
|
||||
#define HAL_BOARD_LOG_DIRECTORY "/var/APM/logs"
|
||||
#define HAL_BOARD_TERRAIN_DIRECTORY "/var/APM/terrain"
|
||||
#define HAL_INS_DEFAULT HAL_INS_MPU9250_SPI
|
||||
#define HAL_INS_DEFAULT_ROTATION ROTATION_NONE
|
||||
#define HAL_INS_MPU9250_NAME "mpu9250"
|
||||
#define HAL_BARO_DEFAULT HAL_BARO_MS5611_I2C
|
||||
#define HAL_BARO_MS5611_I2C_BUS 1
|
||||
@ -182,6 +189,7 @@
|
||||
#define HAL_BOARD_LOG_DIRECTORY "/var/APM/logs"
|
||||
#define HAL_BOARD_TERRAIN_DIRECTORY "/var/APM/terrain"
|
||||
#define HAL_INS_DEFAULT HAL_INS_MPU9250_SPI
|
||||
#define HAL_INS_DEFAULT_ROTATION ROTATION_YAW_270
|
||||
#define HAL_INS_MPU9250_NAME "mpu9250"
|
||||
#define HAL_BARO_DEFAULT HAL_BARO_MS5611_SPI
|
||||
#define HAL_BARO_MS5611_NAME "ms5611"
|
||||
@ -205,6 +213,7 @@
|
||||
#define HAL_BOARD_LOG_DIRECTORY "/var/APM/logs"
|
||||
#define HAL_BOARD_TERRAIN_DIRECTORY "/var/APM/terrain"
|
||||
#define HAL_INS_DEFAULT HAL_INS_BBBMINI
|
||||
#define HAL_INS_DEFAULT_ROTATION ROTATION_NONE
|
||||
#define HAL_INS_MPU9250_NAME "mpu9250"
|
||||
#define HAL_INS_MPU9250_NAME_EXT "mpu9250ext"
|
||||
#define HAL_BARO_DEFAULT HAL_BARO_MS5611_SPI
|
||||
@ -262,6 +271,7 @@
|
||||
#define HAL_BOARD_LOG_DIRECTORY "/var/APM/logs"
|
||||
#define HAL_BOARD_TERRAIN_DIRECTORY "/var/APM/terrain"
|
||||
#define HAL_INS_DEFAULT HAL_INS_MPU9250_SPI
|
||||
#define HAL_INS_DEFAULT_ROTATION ROTATION_YAW_270
|
||||
#define HAL_INS_MPU9250_NAME "mpu9250"
|
||||
#define HAL_BARO_DEFAULT HAL_BARO_MS5611_SPI
|
||||
#define HAL_BARO_MS5611_NAME "ms5611"
|
||||
@ -288,6 +298,7 @@
|
||||
#define HAL_BOARD_LOG_DIRECTORY "/var/APM/logs"
|
||||
#define HAL_BOARD_TERRAIN_DIRECTORY "/var/APM/terrain"
|
||||
#define HAL_INS_DEFAULT HAL_INS_MPU9250_SPI
|
||||
#define HAL_INS_DEFAULT_ROTATION ROTATION_NONE
|
||||
#define HAL_INS_MPU9250_NAME "mpu9250"
|
||||
#define HAL_COMPASS_DEFAULT HAL_COMPASS_AK8963_MPU9250
|
||||
#define HAL_BARO_DEFAULT HAL_BARO_MS5611_I2C
|
||||
|
Loading…
Reference in New Issue
Block a user