Peter Barker
c36e06e7fa
AP_Compass: add documentation for COFS, compass-learning message
5 years ago
Andrew Tridgell
8f83bf5e80
AP_Compass: fixed in-flight learning for all compasses
...
after recent changes only first compass was learnt
See
https://discuss.ardupilot.org/t/break-in-latest-master-in-flight-compass-calibration/52602
5 years ago
Siddharth Purohit
8d227d401a
AP_Compass: modify compass driver to support consistent ordering and hotplugging
5 years ago
Peter Hall
c870df0351
AP_Compass: get_time_flying in vehicle
5 years ago
Andrew Tridgell
6fd0ca36aa
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
f4576ec8f3
AP_Compass: reduce firmware size for AP_Periph
6 years ago
Andrew Tridgell
7206258587
AP_Compass: use new get_earth_field_ga() API
6 years ago
Peter Barker
5455d27e84
AP_Compass: specify floating point constants
...
Probably indicates compiler floating-point-constants directive isn't
working
6 years ago
Peter Barker
6fc76a32af
GLOBAL: use AP::logger() and strip redundant Log_ from methods
6 years ago
Peter Barker
b47733142f
GLOBAL: rename DataFlash_Class to AP_Logger
6 years ago
Andrew Tridgell
70246cf954
AP_Compass: added notify events (LEDs and buzzer) for learning
6 years ago
Andrew Tridgell
23ddd994ec
AP_Compass: allow multiple COMPASS_LEARN runs per boot
6 years ago
Andrew Tridgell
026089747d
AP_Compass: use LEARN_NONE on learn completion
...
master doesn't yet have the statistical EKF learning
6 years ago
Andrew Tridgell
0a7170774a
AP_Compass: allow learning of all compasses
...
slave secondary compasses to primary
6 years ago
Andrew Tridgell
5ac6309848
AP_Compass: enable in-flight compass learning system
...
using COMPASS_LEARN=3
6 years ago
Andrew Tridgell
a260792e9e
AP_Compass: use WITH_SEMAPHORE()
...
and removed usage of hal.util->new_semaphore()
6 years ago
Randy Mackay
3bec25da85
AP_Compass: resolve compiler warnings
7 years ago
Andrew Tridgell
57a3bc1397
AP_Compass: new compass learning system
...
this learns compass offsets using magnetic tables and compass
observations
7 years ago
Mathieu OTHACEHE
152edf7189
Global: remove mode line from headers
...
Using a global .dir-locals.el file is a better alternative than
reincluding the same emacs header in every file of the project.
8 years ago
Lucas De Marchi
e6059f5197
AP_Compass: rename files to follow other libraries
...
AP_Compass.h is the main header to be exported and AP_Compass.cpp its
implementation. There's no need for an additional header.
9 years ago
dgrat
f56f584233
Compass: Improved field rounding in learning
...
Signed-off-by: Daniel Frenzel <dgdanielf@gmail.com>
10 years ago
Tom Pittenger
bf1d128d70
Compass: fix compile warnings re float constants
...
Also fix example sketch
10 years ago
Andrew Tridgell
a871c87cad
AP_Compass: use state array for compass variables
10 years ago
Andrew Tridgell
189d635493
AP_Compass: constrain compass offsets to +/- 2000
...
this is prompted by a user log showing NaN compass offsets, resulting
in a crash. The patch ensures we never end up with NaN offsets, and
also constrains the offsets to a reasonable limit
11 years ago
Andrew Tridgell
9bb8f73d56
Compass: split compass learning out to its own C++ file
11 years ago