param: automatically update calibration ID params on import

This avoids the need for recalibration, and also cleans up other driver
ID's (merge separate accel/gyro).

The SPI address was previously set to a board-specific (arbitrary) value,
and is now set to 0. This will allow extending for multiple sensors of the
same type on the same bus.
This commit is contained in:
Beat Küng
2020-03-10 10:11:43 -04:00
committed by Daniel Agar
parent 1851665fab
commit b54e5a1c23
29 changed files with 275 additions and 65 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ BMP388::BMP388(IBMP388 *interface) :
_measure_perf(perf_alloc(PC_ELAPSED, MODULE_NAME": measure")),
_comms_errors(perf_alloc(PC_COUNT, MODULE_NAME": comms errors"))
{
_px4_baro.set_device_type(DRV_DEVTYPE_BMP388);
_px4_baro.set_device_type(DRV_BARO_DEVTYPE_BMP388);
}
BMP388::~BMP388()
+1 -1
View File
@@ -53,7 +53,7 @@ DPS310::DPS310(device::Device *interface) :
_sample_perf(perf_alloc(PC_ELAPSED, MODULE_NAME": read")),
_comms_errors(perf_alloc(PC_COUNT, MODULE_NAME": comm errors"))
{
_px4_barometer.set_device_type(DRV_DEVTYPE_DPS310);
_px4_barometer.set_device_type(DRV_BARO_DEVTYPE_DPS310);
}
DPS310::~DPS310()