mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-28 10:43:58 -04:00
AP_Baro: identify SPA06 in devid
This commit is contained in:
parent
51efee283a
commit
f9f0bfe08e
@ -54,6 +54,7 @@ public:
|
||||
DEVTYPE_BARO_MS5637 = 0x13,
|
||||
DEVTYPE_BARO_BMP390 = 0x14,
|
||||
DEVTYPE_BARO_BMP581 = 0x15,
|
||||
DEVTYPE_BARO_SPA06 = 0x16,
|
||||
};
|
||||
|
||||
protected:
|
||||
|
@ -248,7 +248,12 @@ bool AP_Baro_SPL06::_init()
|
||||
|
||||
_instance = _frontend.register_sensor();
|
||||
|
||||
if(type == Type::SPA06) {
|
||||
_dev->set_device_type(DEVTYPE_BARO_SPA06);
|
||||
} else {
|
||||
_dev->set_device_type(DEVTYPE_BARO_SPL06);
|
||||
}
|
||||
|
||||
set_bus_id(_instance, _dev->get_bus_id());
|
||||
|
||||
// request 50Hz update
|
||||
|
Loading…
Reference in New Issue
Block a user