deprecate df_bmp280_wrapper and replace with in tree bmp280

- deprecate DriverFramework bmp280 driver (df_bmp280_wrapper)
 - update beaglebone blue and snapdragon flight eagle boards to use in tree bmp280
 - update posix (really just linux) and qurt I2C wrappers
 - tested on beaglebone blue
This commit is contained in:
Daniel Agar
2020-01-05 13:33:12 -05:00
committed by GitHub
parent 1da7209fe1
commit aaf5670e7d
37 changed files with 227 additions and 777 deletions
-1
View File
@@ -25,7 +25,6 @@ px4_add_board(
pwm_out_sim
#telemetry # all available telemetry drivers
DF_DRIVERS # NOTE: DriverFramework is migrating to intree PX4 drivers
bmp280
mpu9250
MODULES
airspeed_selector
-1
View File
@@ -23,7 +23,6 @@ px4_add_board(
pwm_out_sim
#telemetry # all available telemetry drivers
DF_DRIVERS # NOTE: DriverFramework is migrating to intree PX4 drivers
bmp280
mpu9250
MODULES
airspeed_selector
+7 -23
View File
@@ -60,8 +60,13 @@
/*
* I2C busses
*/
#define PX4_I2C_BUS_EXPANSION 1
#define PX4_NUMBER_I2C_BUSES 1
#define PX4_I2C_BUS_EXPANSION 1 // i2c-1: pins P9 17,18
#define PX4_I2C_BUS_ONBOARD 2 // i2c-2: pins P9 19,20 - bmp280, mpu9250
#define PX4_NUMBER_I2C_BUSES 2
#define PX4_I2C_OBDEV_MPU9250 0x68
#define PX4_I2C_OBDEV_BMP280 0x76
#include <system_config.h>
#include <px4_platform_common/board_common.h>
@@ -82,8 +87,6 @@ void rc_cleaning(void);
#define rc_i2c_unlock_bus rc_i2c_release_bus
#define rc_i2c_get_lock rc_i2c_get_in_use_state
#define rc_bmp_init rc_initialize_barometer
#define rc_adc_read_raw rc_adc_raw
#define rc_servo_send_pulse_us rc_send_servo_pulse_us
@@ -94,25 +97,6 @@ void rc_cleaning(void);
#define rc_filter_prefill_outputs rc_prefill_filter_outputs
#define rc_filter_butterworth_lowpass rc_butterworth_lowpass
/**
* struct to hold the data retreived during one read of the barometer.
*/
typedef struct rc_bmp_data_t {
float temp_c; ///< temperature in degrees celcius
float alt_m; ///< altitude in meters
float pressure_pa; ///< current pressure in pascals
} rc_bmp_data_t;
#ifdef __cplusplus
extern "C" {
#endif
int rc_bmp_read(rc_bmp_data_t *data);
#ifdef __cplusplus
}
#endif
#endif
#endif // BOARD_CONFIG_H
-14
View File
@@ -138,17 +138,3 @@ void rc_cleaning(void)
#endif
#endif
}
#ifdef __RC_V0_3
int rc_bmp_read(rc_bmp_data_t *data)
{
int rtn = rc_read_barometer();
data->temp_c = rc_bmp_get_temperature();
data->alt_m = rc_bmp_get_altitude_m();
data->pressure_pa = rc_bmp_get_pressure_pa();
return rtn;
}
#endif