Reply To: Question about the compass_tutorial01.c

Home Forums Forums Technical Support for BerryGPS and BerryGPS-IMU Question about the compass_tutorial01.c Reply To: Question about the compass_tutorial01.c

#17373
thn_tpl
Participant

Here is the test results I sent to sales address

====Result from calibration
#define magXmax -147
#define magYmax 2372
#define magZmax 1055
#define magXmin -2983
#define magYmin -553
#define magZmin -2709

Result after compiling with the above

heading 356.282 Raw,-880,1210,-1297,Cal,685,301,-470,Rscaled,1.586742,-0.416068,0.189692
heading 356.440 Raw,-876,1223,-1334,Cal,689,314,-507,Rscaled,1.589563,-0.407179,0.170032
heading 356.765 Raw,-874,1229,-1188,Cal,691,320,-361,Rscaled,1.590973,-0.403077,0.247609
heading 356.916 Raw,-876,1205,-1287,Cal,689,296,-460,Rscaled,1.589563,-0.419487,0.195005
heading 356.349 Raw,-878,1197,-1300,Cal,687,288,-473,Rscaled,1.588152,-0.424957,0.188098
heading 356.152 Raw,-866,1215,-1295,Cal,699,306,-468,Rscaled,1.596615,-0.412650,0.190755
heading 356.641 Raw,-887,1204,-1266,Cal,678,295,-439,Rscaled,1.581805,-0.420171,0.206164
heading 356.257 Raw,-888,1203,-1315,Cal,677,294,-488,Rscaled,1.581100,-0.420855,0.180128
heading 356.227 Raw,-870,1208,-1280,Cal,695,299,-453,Rscaled,1.593794,-0.417436,0.198725
heading 356.456 Raw,-868,1210,-1256,Cal,697,301,-429,Rscaled,1.595205,-0.416068,0.211477

Turning the unit 180 degree ================

heading 312.402 Raw,-2210,283,-1261,Cal,-645,-626,-434,Rscaled,0.648801,-1.049914,0.208820
heading 312.847 Raw,-2231,288,-1288,Cal,-666,-621,-461,Rscaled,0.633991,-1.046496,0.194474
heading 312.341 Raw,-2224,287,-1225,Cal,-659,-622,-398,Rscaled,0.638928,-1.047179,0.227949
heading 312.522 Raw,-2226,281,-1288,Cal,-661,-628,-461,Rscaled,0.637518,-1.051282,0.194474
heading 312.366 Raw,-2224,301,-1293,Cal,-659,-608,-466,Rscaled,0.638928,-1.037607,0.191817
heading 312.756 Raw,-2210,296,-1262,Cal,-645,-613,-435,Rscaled,0.648801,-1.041026,0.208289
heading 313.065 Raw,-2225,303,-1239,Cal,-660,-606,-412,Rscaled,0.638223,-1.036239,0.220510
heading 312.762 Raw,-2217,287,-1270,Cal,-652,-622,-443,Rscaled,0.643865,-1.047179,0.204038
heading 312.718 Raw,-2220,308,-1258,Cal,-655,-601,-431,Rscaled,0.641749,-1.032820,0.210414
heading 312.988 Raw,-2224,299,-1257,Cal,-659,-610,-430,Rscaled,0.638928,-1.038974,0.210946

Blip, blop, bloop...