mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
bmm150:Restored lost internal i2C
This commit is contained in:
committed by
Daniel Agar
parent
005db51d7f
commit
fd31091fdb
@@ -19,7 +19,7 @@ ist8310 start
|
|||||||
bmp280 -I start
|
bmp280 -I start
|
||||||
|
|
||||||
# expansion i2c used for BMM150 rotated by 90deg
|
# expansion i2c used for BMM150 rotated by 90deg
|
||||||
bmm150 -R 2 start
|
bmm150 -X -R 2 start
|
||||||
|
|
||||||
# For Teal One airframe
|
# For Teal One airframe
|
||||||
if param compare SYS_AUTOSTART 4250
|
if param compare SYS_AUTOSTART 4250
|
||||||
|
|||||||
@@ -86,8 +86,12 @@ void start(bool external_bus, enum Rotation rotation)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
#if defined(PX4_I2C_BUS_ONBOARD)
|
||||||
|
*g_dev_ptr = new BMM150(PX4_I2C_BUS_ONBOARD, path, rotation);
|
||||||
|
#else
|
||||||
PX4_ERR("Internal I2C not available");
|
PX4_ERR("Internal I2C not available");
|
||||||
exit(0);
|
exit(0);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
if (*g_dev_ptr == nullptr) {
|
if (*g_dev_ptr == nullptr) {
|
||||||
|
|||||||
Reference in New Issue
Block a user