I modified continuos measurement rate from 8Hz to 100Hz

Files at this revision

API Documentation at this revision

Comitter:
Joeatsumi
Date:
Tue Nov 16 04:02:25 2021 +0000
Parent:
11:084e8ba240c1
Commit message:
I modified continuos measurement rate from 8Hz to 100Hz

Changed in this revision

MPU9250.cpp Show annotated file Show diff for this revision Revisions of this file
MPU9250.h Show annotated file Show diff for this revision Revisions of this file
--- a/MPU9250.cpp	Tue Jul 01 13:59:45 2014 +0000
+++ b/MPU9250.cpp	Tue Nov 16 04:02:25 2021 +0000
@@ -74,7 +74,8 @@
         {0x81, MPUREG_I2C_SLV0_CTRL},  //Enable I2C and set 1 byte
 
         {AK8963_CNTL1, MPUREG_I2C_SLV0_REG}, //I2C slave 0 register address from where to begin data transfer
-        {0x12, MPUREG_I2C_SLV0_DO}, // Register value to continuous measurement in 16bit
+        //{0x12, MPUREG_I2C_SLV0_DO}, // Register value to continuous measurement in 16bit 8Hz measurement
+        {0x16, MPUREG_I2C_SLV0_DO}, // Register value to continuous measurement in 16bit 8Hz measurement
         {0x81, MPUREG_I2C_SLV0_CTRL}  //Enable I2C and set 1 byte
         
     };
--- a/MPU9250.h	Tue Jul 01 13:59:45 2014 +0000
+++ b/MPU9250.h	Tue Nov 16 04:02:25 2021 +0000
@@ -176,7 +176,7 @@
 #define MPUREG_ZA_OFFSET_L         0x7E
 /* ---- AK8963 Reg In MPU9250 ----------------------------------------------- */
 
-#define AK8963_I2C_ADDR             0x0c//0x18
+#define AK8963_I2C_ADDR             0x0c//0x18 0x0c
 #define AK8963_Device_ID            0x48
 
 // Read-only Reg