Ardupilot2/libraries/AP_Compass
Gustavo Jose de Sousa b603641d7c AP_Compass: AK8963: fix where to apply sensitivity adjustments
The function rotate_field() can change the values axes and the function
correct_field() applies offsets (which are already in milligauss). Thus any
sensitivity adjustment must be done for two reasons:

    (1) The offsets must be applied to the values already in milligauss;
    (2) The factory sensitivity adjustment values are per axis, if any rotation
        that switches axes is applied, that'll mess with the adjustment.

Experiments showed that before this patch the length of the mag field reported
quite different from the expected. After this patch, the same experiments
showed reasonable values.
2015-10-15 19:56:13 +09:00
..
examples/AP_Compass_test AP_Compass: use compass get_{field,offsets}() functions 2015-10-15 19:56:02 +09:00
AP_Compass_AK8963.cpp AP_Compass: AK8963: fix where to apply sensitivity adjustments 2015-10-15 19:56:13 +09:00
AP_Compass_AK8963.h AP_Compass: Add support for more then one AK8963 2015-10-06 10:38:21 +11:00
AP_Compass_Backend.cpp AP_Compass: fix the milligauss handling 2015-09-09 14:53:11 +10:00
AP_Compass_Backend.h AP_Compass: fix the milligauss handling 2015-09-09 14:53:11 +10:00
AP_Compass_Calibration.cpp AP_Compass: added parameter for compass calibration fitness threshold 2015-09-14 17:01:14 +10:00
AP_Compass_HIL.cpp AP_Compass: fix the milligauss handling 2015-09-09 14:53:11 +10:00
AP_Compass_HIL.h AP_Compass: fix the milligauss handling 2015-09-09 14:53:11 +10:00
AP_Compass_HMC5843.cpp AP_Compass: HMC5843: scale mag field internally 2015-10-15 19:56:11 +09:00
AP_Compass_HMC5843.h AP_Compass: HMC5843: fix _calibrate() 2015-10-15 19:56:10 +09:00
AP_Compass_LSM303D.cpp AP_Compass: fix milligauss code in LSM303D driver 2015-09-16 16:52:17 +09:00
AP_Compass_LSM303D.h AP_Compass: fix milligauss code in LSM303D driver 2015-09-16 16:52:17 +09:00
AP_Compass_PX4.cpp AP_Compass: fix the milligauss handling 2015-09-09 14:53:11 +10:00
AP_Compass_PX4.h AP_Compass: fix the milligauss handling 2015-09-09 14:53:11 +10:00
AP_Compass.h AP_Compass: use state array for compass variables 2015-03-13 18:46:15 +11:00
Compass_learn.cpp Compass: Improved field rounding in learning 2015-07-06 11:31:58 +10:00
Compass.cpp AP_Compass: use compass get_{field,offsets}() functions 2015-10-15 19:56:02 +09:00
Compass.h AP_Compass: remove get_{field,offsets}_milligauss() functions 2015-10-15 19:56:09 +09:00
CompassCalibrator.cpp AP_Compass: standardize inclusion of libaries headers 2015-09-03 16:59:13 +10:00
CompassCalibrator.h AP_Compass: standardize inclusion of libaries headers 2015-09-03 16:59:13 +10:00
keywords.txt Compass: fixup line endings 2014-04-15 15:56:57 +09:00