Andrew Tridgell
91b4ba3588
AP_Compass: allow for more than one compass in HIL/SITL
10 years ago
Andrew Tridgell
1962706a33
AP_Compass: fixed last_update, using last_update_usec()
...
this broke use of compass in the EKF
10 years ago
Andrew Tridgell
86fc90f54c
AP_Compass: removed spurious rotation in PX4 backend
...
and cleanup rotation macros
10 years ago
Andrew Tridgell
fec2025469
AP_Compass: added set_hil_mode()
10 years ago
Andrew Tridgell
4bc92b6373
AP_Compass: removed _product_id var
10 years ago
Andrew Tridgell
0efd3bacea
AP_Compass: make new backend match old PX4 behaviour
...
when a compass is internal only apply board orientation, not user
specified rotation
10 years ago
Andrew Tridgell
a871c87cad
AP_Compass: use state array for compass variables
10 years ago
Víctor Mayoral Vilches
13f0aa5ecd
AP_Compass: Separate common code into backend
...
_copy_to_frontend function takes care of abstracting
this code from the driver. For now the function takes
care of the offset and rotation that is common.
10 years ago
Víctor Mayoral Vilches
d3b76cd8d3
AP_Compass: split compass into frontend/backend
10 years ago
Staroselskii Georgii
b804430276
AP_Compass: changed default orientation for AK8963 on Navio
10 years ago
Staroselskii Georgii
0d1cf347c7
AP_Compass: added AK8963 support
10 years ago
Jonathan Challinger
9054dd3f9a
AP_Compass: use apply_correction_function to eliminate duplication
10 years ago
Andrew Tridgell
b437977547
AP_Compass: added set_offsets() interface
...
this will be used by Replay to prevent the need for saving parameters
10 years ago
Randy Mackay
023b6afe8b
Compass: add ORIENT2 and EXTERNAL2 params
11 years ago
Randy Mackay
798cc36e64
Compass: use_for_yaw for each compass
11 years ago
Randy Mackay
84d792216e
Compass: use_for_yaw to use primary compass health
...
This allows the internal compass to be used if the external compass
fails.
11 years ago
Randy Mackay
c2c5807ec7
Compass: always default devid to zero
11 years ago
Andrew Tridgell
41e65c2415
AP_Compass: fixed default orientation for PXF
11 years ago
Randy Mackay
d291594d7c
Compass: get_primary method made public
11 years ago
Randy Mackay
1f579563e6
Compass: set_motor_compensation takes instance as first parameter
...
Also get_motor_compensation uses primary compass
11 years ago
Randy Mackay
bbf4805b0e
Compass: update pixhawk expected device ids
11 years ago
Randy Mackay
a778522cef
Compass: add learn_offsets_enabled accessor method
11 years ago
Randy Mackay
108c878b04
Compass: set_offsets modified to also save offsets
11 years ago
Randy Mackay
124bd4b489
Compass: save_offsets accepts compass instance
11 years ago
Randy Mackay
b7f33d81ad
Compass: add DEV_ID param and configured method
...
These allow checking the offsets were created with the current compass
device.
11 years ago
Andrew Tridgell
c138244155
AP_Compass: support 3 mags on PX4
11 years ago
LukeMike
8f552d5758
VRBRAIN: Changed the management of VirtualRobotix's boards.
11 years ago
Andrew Tridgell
2d9e9d9bc3
AP_Compass: added COMPASS_PRIMARY parameter
...
this allows selection of which compass is the primary. Useful if the
first compass starts giving spurious data (as happened in our plane)
11 years ago
Emile Castelnuovo
1bc199c5bd
AP_Compass: new files and definition for VRBRAIN board
11 years ago
Andrew Tridgell
9bb8f73d56
Compass: split compass learning out to its own C++ file
11 years ago
Andrew Tridgell
c44d8b45ce
AP_Compass: auto-select healthy compass
11 years ago
Andrew Tridgell
61f564d7c9
AP_Compass: support motor compensation for multiple compasses
...
Pair-Programmed-With: Randy Mackay <rmackay9@yahoo.com>
11 years ago
Andrew Tridgell
c538816825
AP_Compass: support compass health status on multiple compasses
11 years ago
Andrew Tridgell
bde89fd4e2
AP_Compass: added compass offsets for 2nd compass
11 years ago
Andrew Tridgell
8a97042fb1
AP_Compass: updates to support multiple compasses
11 years ago
Andrew Tridgell
cb16733918
AP_Compass: switched to a vector based interface
...
this is more consistent with other APIs and makes multi-device support
easier
11 years ago
Andrew Tridgell
f286369990
AP_Compass: fixed orientation on Linux
12 years ago
Andrew Tridgell
1243ab9e63
AP_Compass: added HAL_Linux support
12 years ago
Andrew Tridgell
3f0f8dfa62
AP_Compass: removed SMACCM support
12 years ago
Mike McCauley
2fa0c39f3a
AP_Compass: added Flymaple orientation
12 years ago
Andrew Tridgell
fbf79c07f0
AP_Compass: added COMPASS_EXTERNAL option
...
this allows configuring of a compass as being externally attached
12 years ago
Tobias
ab311d1dd4
AP_Compass: removed comparison out of range compiler warning
...
uint_ >= 0 (-Wtype-limits)
12 years ago
Andrew Tridgell
9a87b3f3c1
AP_Compass: use const on more functions and remove old calculate_heading()
...
the calculate_heading() based on roll/pitch is not needed anywhere
12 years ago
Andrew Tridgell
217f34e155
AP_Compass: added COMPASS_ORIENT parameter, to support external compasses
...
this allows the user to configure the compass for any orientation
supported by our rotation library
12 years ago
Andrew Tridgell
26fa5c40f1
Compass: use const references for some functions
12 years ago
Randy Mackay
b8974dec99
Copter: compass learn off by default
12 years ago
Randy Mackay
b48864e1ad
Copter: allow CH6 tuning of compass declination
12 years ago
Randy Mackay
b8d492b504
Compass: current based compensation added
12 years ago
Randy Mackay
e113eb526b
Compass: add get_motor_compensation
...
Remove redundant set_motor_compensation call
12 years ago
Randy Mackay
bfb29ce22b
Compass: remove virtual functions to save RAM
12 years ago