We need to init the gyro subdevice, or there is no device node. Oops.

This commit is contained in:
px4dev
2012-08-23 20:32:13 -07:00
parent 295e9da1ba
commit f28a757f92
+2
View File
@@ -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;
} }