Andrew Tridgell
fad20439a1
AP_Compass: added estimation of compass scale factor
...
this adds new COMPASS_SCALE, COMPASS_SCALE2 and COMPASS_SCALE3
parameters, which give the sensor scaling factor. It is used to
compensate for an incorrect scaling in a compass.
The 3D compass calibration process will set the correct value
automatically, otherwise users can set the value to a known value for
an existing compass
5 years ago
Andrew Tridgell
71ad90819e
AP_Compass: don't reset SITL compass offsets if set by user
...
makes for easier EKF compass bias learning testing
5 years ago
Andrew Tridgell
9e7929adf6
AP_Compass: removed unusued AP_Common/Semaphore.h
6 years ago
Andrew Tridgell
55e4b64755
AP_Compass: don't apply offsets twice in SITL
6 years ago
Andrew Tridgell
83065d5e88
AP_Compass: convert SITL to new accumulate approach
6 years ago
Andrew Tridgell
a260792e9e
AP_Compass: use WITH_SEMAPHORE()
...
and removed usage of hal.util->new_semaphore()
6 years ago
Lucas De Marchi
de535dc573
AP_Compass: remove unused external and name arguments
...
Aka "fix copy and pasta".
7 years ago
Lucas De Marchi
4039b51810
AP_Compass: stop passing frontend pointer
...
Let AP_Compass_Backend call AP::compass() *once* instead of passing
the frontend pointer over and over.
7 years ago
Andrew Tridgell
cbd6f4cc21
AP_Compass: fixed compass for tailsitters in SITL
7 years ago
Andrew Tridgell
b4c7d1925e
AP_Compass: allow for runtime changes to SIM_MAG_DIA_?
...
this makes for easier testing
7 years ago
Andrew Tridgell
4acc06df87
AP_Compass: support diagonal, off-diagonal and rotation in SITL
...
compass
7 years ago
Andrew Tridgell
7ec6522b9d
AP_Compass: default to right mag offsets for SITL
7 years ago
Andrew Tridgell
2fe2c8fbda
AP_Compass: initialise compass IDs saved in SITL
...
this ensures we don't get uncalibrates compasses in SITL
7 years ago
Andrew Tridgell
823c4523b3
AP_Compass: added SITL device IDs
7 years ago
Patrick José Pereira
e456655932
AP_Compass: Use SITL singleton
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
7 years ago
Michael du Breuil
fb77d0739e
AP_Compass: Remove unused time calls, stash the time in the read loop
8 years ago
Miguel Arroyo
ee328c9683
AP_Compass: move SITL Compass to standard sensor backend model
8 years ago