cancel
Showing results for 
Search instead for 
Did you mean: 

ism330dhcx i2c get accel_x,y,z and heading calculation issue

arprip
Associate

Hi,

     We are use openWRT and  ism330dhcx and LIS2MDLTR  on board.  The ko driver   has been created and  insert into kernel . When read data from  /sys/devices/platform/i2c_gpio@0/i2c-0/0-006a/iio:device2/in_accel_XXXX,   We has found the Z value is random ( device dosn't move ).   it cause our heading value calculation  is not stable.   Any suggestion ?

BR, 

arprip

 

 

Here is the log

============

check imu ko module =0
ST imu & mag40 ko already loaded
ST ISM330DHCX (G sensor):
accel x_raw= 804, x_scal=0.001196411
accel y_raw= -18, y_scal=0.001196411
accel z_raw=32764, z_scal=0.001196411
check imu ko module =0
ST imu & mag40 ko already loaded
ST ISM330DHCX (G sensor):
accel x_raw= 278, x_scal=0.001196411
accel y_raw= -16, y_scal=0.001196411
accel z_raw= 8070, z_scal=0.001196411
check imu ko module =0
ST imu & mag40 ko already loaded
ST ISM330DHCX (G sensor):
accel x_raw= 159, x_scal=0.001196411
accel y_raw= -32, y_scal=0.001196411
accel z_raw=14207, z_scal=0.001196411
check imu ko module =0
ST imu & mag40 ko already loaded
ST ISM330DHCX (G sensor):
accel x_raw= 505, x_scal=0.001196411
accel y_raw= -16, y_scal=0.001196411
accel z_raw=32764, z_scal=0.001196411
check imu ko module =0
ST imu & mag40 ko already loaded
ST ISM330DHCX (G sensor):
accel x_raw= 299, x_scal=0.001196411
accel y_raw= -29, y_scal=0.001196411
accel z_raw= 8080, z_scal=0.001196411
check imu ko module =0
ST imu & mag40 ko already loaded
ST ISM330DHCX (G sensor):
accel x_raw= 157, x_scal=0.001196411
accel y_raw= -41, y_scal=0.001196411
accel z_raw= 8081, z_scal=0.001196411
check imu ko module =0
ST imu & mag40 ko already loaded
ST ISM330DHCX (G sensor):
accel x_raw= 157, x_scal=0.001196411
accel y_raw= -13, y_scal=0.001196411
accel z_raw=32764, z_scal=0.001196411
check imu ko module =0
ST imu & mag40 ko already loaded
ST ISM330DHCX (G sensor):
accel x_raw= 517, x_scal=0.001196411
accel y_raw= -10, y_scal=0.001196411
accel z_raw= 8086, z_scal=0.001196411
check imu ko module =0
ST imu & mag40 ko already loaded
ST ISM330DHCX (G sensor):
accel x_raw= 159, x_scal=0.001196411
accel y_raw= -62, y_scal=0.001196411
accel z_raw=14241, z_scal=0.001196411
check imu ko module =0
ST imu & mag40 ko already loaded
ST ISM330DHCX (G sensor):
accel x_raw= 487, x_scal=0.001196411
accel y_raw= -11, y_scal=0.001196411
accel z_raw=24350, z_scal=0.001196411
check imu ko module =0
ST imu & mag40 ko already loaded
ST ISM330DHCX (G sensor):
accel x_raw= 159, x_scal=0.001196411
accel y_raw= -13, y_scal=0.001196411
accel z_raw= 8088, z_scal=0.001196411
check imu ko module =0
ST imu & mag40 ko already loaded
ST ISM330DHCX (G sensor):
accel x_raw= 158, x_scal=0.001196411
accel y_raw= -15, y_scal=0.001196411
accel z_raw=32764, z_scal=0.001196411
check imu ko module =0
ST imu & mag40 ko already loaded
ST ISM330DHCX (G sensor):
accel x_raw= 287, x_scal=0.001196411
accel y_raw= -24, y_scal=0.001196411
accel z_raw=14219, z_scal=0.001196411
check imu ko module =0
ST imu & mag40 ko already loaded
ST ISM330DHCX (G sensor):
accel x_raw= 520, x_scal=0.001196411
accel y_raw= -21, y_scal=0.001196411
accel z_raw=24327, z_scal=0.001196411
check imu ko module =0
ST imu & mag40 ko already loaded
ST ISM330DHCX (G sensor):
accel x_raw= 499, x_scal=0.001196411
accel y_raw= -35, y_scal=0.001196411
accel z_raw= 8087, z_scal=0.001196411
check imu ko module =0
ST imu & mag40 ko already loaded
ST ISM330DHCX (G sensor):
accel x_raw= 789, x_scal=0.001196411
accel y_raw= -17, y_scal=0.001196411
accel z_raw=32764, z_scal=0.001196411
check imu ko module =0
ST imu & mag40 ko already loaded
ST ISM330DHCX (G sensor):
accel x_raw= 504, x_scal=0.001196411
accel y_raw= -10, y_scal=0.001196411
accel z_raw=24334, z_scal=0.001196411
check imu ko module =0
ST imu & mag40 ko already loaded
ST ISM330DHCX (G sensor):
accel x_raw= 527, x_scal=0.001196411
accel y_raw= -7, y_scal=0.001196411
accel z_raw=24334, z_scal=0.001196411
check imu ko module =0
ST imu & mag40 ko already loaded
ST ISM330DHCX (G sensor):
accel x_raw= 492, x_scal=0.001196411
accel y_raw= -15, y_scal=0.001196411
accel z_raw=32764, z_scal=0.001196411
check imu ko module =0
ST imu & mag40 ko already loaded
ST ISM330DHCX (G sensor):
accel x_raw= 477, x_scal=0.001196411
accel y_raw= -26, y_scal=0.001196411
accel z_raw=24358, z_scal=0.001196411
check imu ko module =0
ST imu & mag40 ko already loaded
ST ISM330DHCX (G sensor):
accel x_raw= 300, x_scal=0.001196411
accel y_raw= -13, y_scal=0.001196411
accel z_raw= 8082, z_scal=0.001196411
check imu ko module =0
ST imu & mag40 ko already loaded
ST ISM330DHCX (G sensor):
accel x_raw= 158, x_scal=0.001196411
accel y_raw= -15, y_scal=0.001196411
accel z_raw=32764, z_scal=0.001196411
check imu ko module =0
ST imu & mag40 ko already loaded
ST ISM330DHCX (G sensor):
accel x_raw= 514, x_scal=0.001196411
accel y_raw= -16, y_scal=0.001196411
accel z_raw=32764, z_scal=0.001196411
check imu ko module =0
ST imu & mag40 ko already loaded
ST ISM330DHCX (G sensor):
accel x_raw= 493, x_scal=0.001196411
accel y_raw= -13, y_scal=0.001196411
accel z_raw= 8087, z_scal=0.001196411
^C

 

 

 

0 REPLIES 0