mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-06 06:43:21 +08:00
We need to init the gyro subdevice, or there is no device node. Oops.
This commit is contained in:
@@ -430,6 +430,8 @@ MPU6000::init()
|
|||||||
// write_reg(MPUREG_PWR_MGMT_1,MPU_CLK_SEL_PLLGYROZ);
|
// write_reg(MPUREG_PWR_MGMT_1,MPU_CLK_SEL_PLLGYROZ);
|
||||||
usleep(1000);
|
usleep(1000);
|
||||||
|
|
||||||
|
/* do CDev init for the gyro device node */
|
||||||
|
ret = _gyro->init();
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user