15 EUL_HEADING_MSB = (const(0x1B), b
"<B")
16 EUL_HEADING_LSB = (const(0x1A), b
"<B")
17 EUL_HEADING = (const(0x1B), b
"<h")
18 EUL_DATA_ALL = (const(0x1A), b
"hhh")
20 OPR_MODE = (const(0x3D), b
"<B")
21 CALIB_STAT = (const(0x35), b
"<B")
23 CALIB_COEFF_START = (const(0x55), b
"hhhhhhhhhhh")
24 CALIB_COEFF_STOP = (const(0x81), b
"b")
26 ACC_OFFSET= (const(0x55), b
"<hhh")
27 MAG_OFFSET=(const(0x5B), b
"<hhh")
28 GYR_OFFSET=(const(0x61), b
"<hhh")
32 EUL_Data_X= (const(0x01A), b
"<h")
33 EUL_Data_Y= (const(0x01C), b
"<h")
34 EUL_Data_Z= (const(0x01E), b
"<h")
37 GYR_DATA_X = (const(0x014), b
"<h")
38 GYR_DATA_Y = (const(0x016), b
"<h")
39 GYR_DATA_Z = (const(0x018), b
"<h")
169 (acc_x, acc_y, acc_z,mag_x, mag_y, mag_z,gyr_x, gyr_y, gyr_z, acc_rad, mag_rad)=self.
_read_reg(self.
reg.CALIB_COEFF_START)
170 return (acc_x, acc_y, acc_z,mag_x, mag_y, mag_z,gyr_x, gyr_y, gyr_z, acc_rad, mag_rad)
182 def write_calibration_coeff(self, coef1, coef2, coef3, coef4, coef5, coef6, coef7, coef8, coef9, coef10, coef11):
183 coeffs=[coef1,coef2, coef3, coef4, coef5, coef6, coef7, coef8, coef9, coef10, coef11 ]
184 coeff_bits=b
''.join(coeffs)
186 self.
_i2c.mem_write(coeff_bits,self.
DEV_ADDR, self.
reg.CALIB_COEFF_START[0])