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
Randy Mackay
80bd458f29
Compass: update parameter description
...
We do not want people modifying the COMPASS_MOTCT manually
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
f78de63a09
AP_Compass: more efficient calculate_heading() implementation
...
Thanks to piersh for this improvement. See
b5f0635455 (commitcomment-3171806)
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
ba83950fc4
libraries: replace constrain() with constrain_float()
...
this makes the type much more obvious. Thanks to Tobias for the
suggestion.
12 years ago
Andrew Tridgell
26fa5c40f1
Compass: use const references for some functions
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
886725291c
Compass: enable motor compensation for 1280
...
Expand motor compenstion vector's range limit
12 years ago
Randy Mackay
d8515ff85e
Compass: basic compensation for motor interference
12 years ago
James Bielman
5631f865b2
Update floating point calculations to use floats instead of doubles.
...
- Allows use of hardware floating point on the Cortex-M4.
- Added "f" suffix to floating point literals.
- Call floating point versions of stdlib math functions.
12 years ago
rmackay9
bf77a0f2e4
AP_Compass: added parameter descriptions
12 years ago
Andrew Tridgell
a180437028
AP_Compass: disable auto-declination on 1280
...
this saves a few k of flash space
12 years ago
Andrew Tridgell
c181498e36
Compass: updates for new AP_Param API
12 years ago
Pat Hickey
53432a1101
AP_Compass: ported to AP_HAL
12 years ago
uncrustify
7840eebaef
uncrustify libraries/AP_Compass/Compass.cpp
13 years ago
rmackay9
9b3ced93ee
AP_Compass: fix for mismatching set_initial_location parameters (forgot to change long to int32_t in .cpp file)
13 years ago
Andrew Tridgell
518d6365ff
AP_Param: update remaining libraries for new constructor syntax
13 years ago