Randy Mackay
cedc9a8670
Compass: add last_update_usec per instance
10 years ago
Julien BERAUD
51c3c499e2
AP_Compass: support AK8963 on I2C
10 years ago
Julien BERAUD
0b41da0dea
AP_Compass: rework to make the bus generic for AK8963
...
Supporting only MPU9250, prepare to implement another bus, i.e i2c on the
bebop
10 years ago
Staroselskii Georgii
26c8007c96
AP_Compass: updated backend detect method
...
Uses reimplemented AK8963 driver. There's also no need trying to detect this
compass twice. Actually, it might even be bad, because the current code can
allocate an AK8963 object twice.
10 years ago
Randy Mackay
43b1694c76
Compass: add third compass to PRIMARY param description
10 years ago
Andrew Tridgell
edc21cfa38
AP_Compass: make having no compass backends non-fatal
...
thanks to Daniel for spotting this
10 years ago
Andrew Tridgell
91b4ba3588
AP_Compass: allow for more than one compass in HIL/SITL
10 years ago
Andrew Tridgell
015fce5183
AP_Compass: revert AP_Math class change
10 years ago
Tom Pittenger
d09ef4783d
AP_Compass: compiler warnings: reorder constructors
10 years ago
Tom Pittenger
ad11a57f57
AP_Compass: compiler warnings: apply is_zero(float) or is_equal(float)
10 years ago
Tom Pittenger
16e71ec1ce
Compass: fix compile warning re member init order
10 years ago
Andrew Tridgell
dcb25632fb
AP_Compass: removed old setHIL compass offset
10 years ago
Andrew Tridgell
d7000c4105
AP_Compass: fixed compass timestamps in Replay
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
fec2025469
AP_Compass: added set_hil_mode()
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
d3b76cd8d3
AP_Compass: split compass into frontend/backend
10 years ago
Randy Mackay
ffbc3862bd
Compass: update compass orient param description
...
Update rotation 38 to Yaw293Pitch68Roll90
10 years ago
Randy Mackay
20f3f19285
Compass: add new rotation to ORIENT param description
10 years ago
Randy Mackay
31087e4f20
Compass: shorten EXTERNAL2/3 to EXTERN2/3
...
Bug discovered by Michael Day
10 years ago
Andrew Tridgell
7db0244dac
AP_Compass: added some comments
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
e14ae0c0b1
Compass: param descriptions for OFS2, MOT2
11 years ago
Randy Mackay
c2c5807ec7
Compass: always default devid to zero
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
47801a6c4d
Compass: bug fix to init of device id
...
Also init members to reduce compiler warnings
11 years ago
Craig Elder
c9f3adcb5c
Compass: Updated COMPASS_PRIMARY parameter description
11 years ago
Craig Elder
0ecd12b1c6
AP_Compass: Corrected typo in parameter description
...
Corrected typo in parameter description
11 years ago
Randy Mackay
4995b9ada8
Compass: default device id to zero
11 years ago
Randy Mackay
16d4af8346
Compass: sanity check instance in set_and_save_offsets
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
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
Andrew Tridgell
cf148fa76c
AP_Compass: improved COMPASS_ORIENT and COMPASS_EXTERNAL for Pixhawk
11 years ago
Andrew Tridgell
9bb8f73d56
Compass: split compass learning out to its own C++ file
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
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
9320e82ac2
AP_Compass: added in new orientations
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
Andrew Tridgell
feac9d1306
AP_Compass: fixed a bug in the tilt compass calculation
...
The simplification applied a few months ago was incorrect
12 years ago
Andrew Tridgell
a6c7bd3612
AP_Compass: fixed rotations for COMPASS_ORIENT
...
this matches AHRS_ORIENTATION again
12 years ago
Craig@3DR
1a3ed2d80b
AP_Compass: Corrected COMPASS_ORIENT Parameter Description
12 years ago