LSM9DS1-Adafruit-AHRS/calibration/sample_out.txt

34 lines
908 B
Text

shape of data array: (300, 3)
First 5 rows raw:
[[ 41.93 2.7 -67.14]
[ 41.77 2.97 -66.94]
[ 42.09 2.6 -66.38]
[ 42.05 3.03 -67.19]
[ 42.15 2.27 -67.33]]
Data normalized to 1000
Soft iron transformation matrix:
[[21.23836366 0.66439672 0.48954388]
[ 0.66439672 19.50603233 -0.03060383]
[ 0.48954388 -0.03060383 20.84084544]]
Hard iron bias:
[[ 26.9734346 ]
[ 23.62731129]
[-23.37274735]]
First 5 rows calibrated:
[[ 282.32294764 -396.9322721 -904.184197 ]
[ 279.20210535 -391.77806761 -900.10261797]
[ 286.0266995 -398.79983076 -888.26376706]
[ 285.06632501 -390.41402364 -905.17759327]
[ 286.61668372 -405.16788399 -908.02309834]]
*************************
code to paste :
*************************
float B[3] = { [26.97] , [23.63] , [-23.37] };
float A_inv[3][3] = {
{ 21.23836 , 0.6644 , 0.48954 },
{ 0.6644 , 19.50603 , -0.0306 },
{ 0.48954 , -0.0306 , 20.84085 }};