From b2172a04758ae989870eda4f2b3e361cdc594522 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 21 Jun 2017 17:03:03 +1000 Subject: [PATCH] AP_Baro: support PCNC1 --- libraries/AP_Baro/AP_Baro.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libraries/AP_Baro/AP_Baro.cpp b/libraries/AP_Baro/AP_Baro.cpp index d42d6b993e..4454a0fe00 100644 --- a/libraries/AP_Baro/AP_Baro.cpp +++ b/libraries/AP_Baro/AP_Baro.cpp @@ -475,6 +475,11 @@ void AP_Baro::init(void) std::move(hal.spi->get_device(HAL_BARO_MS5611_NAME)))); break; + case AP_BoardConfig::PX4_BOARD_PCNC1: + ADD_BACKEND(AP_Baro_ICM20789::probe(*this, + std::move(hal.i2c_mgr->get_device(1, 0x63)))); + break; + default: break; }