mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 11:06:04 +08:00
refactor bmp280: use driver base class
This commit is contained in:
@@ -54,8 +54,6 @@
|
||||
|
||||
#define PX4_NUMBER_I2C_BUSES 3
|
||||
|
||||
#define PX4_I2C_OBDEV_BMP280 0x76
|
||||
|
||||
// SPI
|
||||
#define PX4_SPI_BUS_SENSORS 1
|
||||
#define PX4_SPIDEV_MPU PX4_MK_SPI_SEL(0, DRV_IMU_DEVTYPE_MPU9250) // spi-1 - mpu9250
|
||||
|
||||
@@ -54,8 +54,6 @@
|
||||
|
||||
#define PX4_NUMBER_I2C_BUSES 3
|
||||
|
||||
#define PX4_I2C_OBDEV_BMP280 0x76
|
||||
|
||||
// SPI
|
||||
#define PX4_SPI_BUS_SENSORS 1
|
||||
#define PX4_SPIDEV_MPU PX4_MK_SPI_SEL(0, DRV_IMU_DEVTYPE_MPU9250)
|
||||
|
||||
@@ -56,7 +56,6 @@
|
||||
#define PX4_NUMBER_I2C_BUSES 2
|
||||
|
||||
#define PX4_I2C_OBDEV_MPU9250 0x68
|
||||
#define PX4_I2C_OBDEV_BMP280 0x76
|
||||
|
||||
|
||||
// ADC channels:
|
||||
|
||||
@@ -11,8 +11,8 @@ then
|
||||
mpu6000 -R 12 -s -T 20689 start
|
||||
fi
|
||||
|
||||
# Internal Baro
|
||||
bmp280 start
|
||||
# Onboard Baro
|
||||
bmp280 -X start
|
||||
|
||||
# Possible external compasses
|
||||
ist8310 -X start
|
||||
|
||||
@@ -105,8 +105,6 @@
|
||||
#define BOARD_NUMBER_I2C_BUSES 1
|
||||
#define BOARD_I2C_BUS_CLOCK_INIT {100000}
|
||||
|
||||
#define PX4_I2C_OBDEV_BMP280 0x76
|
||||
|
||||
/*
|
||||
* ADC channels
|
||||
*
|
||||
|
||||
@@ -268,8 +268,6 @@ __END_DECLS
|
||||
|
||||
#define PX4_I2C_BUS_LED PX4_I2C_BUS_EXPANSION
|
||||
|
||||
#define PX4_I2C_OBDEV_BMP280 0x76
|
||||
|
||||
/*
|
||||
* ADC channels
|
||||
*
|
||||
|
||||
@@ -170,12 +170,6 @@
|
||||
#define PX4_I2C_BUS_EXPANSION 1
|
||||
#define PX4_I2C_BUS_LED PX4_I2C_BUS_EXPANSION
|
||||
|
||||
/**
|
||||
* Devices on the external bus.
|
||||
* Note that these are unshifted addresses.
|
||||
*/
|
||||
#define PX4_I2C_OBDEV_BMP280 0x76
|
||||
|
||||
/**
|
||||
* ADC channels:
|
||||
* These are the channel numbers of the ADCs of the microcontroller that can be used by the Px4 Firmware in the adc driver.
|
||||
|
||||
Reference in New Issue
Block a user