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
Lucas De Marchi
b3d26c5988
AP_Compass: remove trailing whitespaces in header
9 years ago
Lucas De Marchi
1a71c169fe
AP_Compass: replace header guard with pragma once
9 years ago
Andrew Tridgell
c59bdc12df
AP_Compass: fix the milligauss handling
...
the previous approach assumed a 1:1 mapping between compass backends
and compass instances, which isn't true on PX4.
It also only setup milligauss offsets on a set_and_save call, which is
not the only way offsets change
this adds a milligauss_ratio per instance, which is considerably
simpler
10 years ago
Staroselskii Georgii
c207d8c6a8
AP_Compass: add milligauss counterparts to get_field() and get_offsets()
...
From now on there's a pair get_field_milligauss() and
get_offsets_milligauss() that can make the transition to the common
units across all compasses easier.
10 years ago
Andrew Tridgell
d7bac39539
AP_Compass: removed two unused functions
10 years ago
Andrew Tridgell
a871c87cad
AP_Compass: use state array for compass variables
10 years ago
Víctor Mayoral Vilches
d3b76cd8d3
AP_Compass: split compass into frontend/backend
10 years ago
Randy Mackay
85e82a0399
Compass_PX4: use instance specific orient and external
11 years ago
Randy Mackay
a6c29ba1c3
Compass_PX4: get_primary made public
11 years ago
Andrew Tridgell
c44d8b45ce
AP_Compass: auto-select healthy compass
11 years ago
Andrew Tridgell
8a97042fb1
AP_Compass: updates to support multiple compasses
11 years ago
Andrew Tridgell
fbf79c07f0
AP_Compass: added COMPASS_EXTERNAL option
...
this allows configuring of a compass as being externally attached
12 years ago
Andrew Tridgell
1ff669eb97
AP_Compass: simplify PX4 compass driver
...
we can now rely on queueing in the NuttX driver
12 years ago
Andrew Tridgell
0fce0eb488
AP_Compass_PX4: fixed handling of a saturated compass
...
a saturated compass is now marked unhealthy, rather than causing the
code to spin waiting for a valid sample. This fixes a problem with
strong magnets causing the main flight loop to stop
12 years ago
Andrew Tridgell
80eaa52ed8
AP_Compass: use report timestamp on PX4 for accurate timing
12 years ago
Andrew Tridgell
741174f5d5
AP_Compass: first cut at a PX4 compass driver
12 years ago