Andrew Tridgell
4007b7b1e9
AP_Compass: fixed indent-tabs-mode
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
c90d44c121
AP_Compass_HIL: fixed indentation
12 years ago
Andrew Tridgell
f72dd560cb
AP_Compass: fixed the HIL sensors compass
...
this sets up good compass values for HIL sensors
12 years ago
Andrew Tridgell
86027f6e0f
AP_Compass: fixed PX4 build
12 years ago
Andrew Tridgell
af50b652f8
AP_Compass: removed old orientation defines
...
we now use the rotations in libraries/AP_Math/rotations.h
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
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
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
Christopher Hrabia
9760cdf2d7
Compass: corrected space
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
Randy Mackay
886725291c
Compass: enable motor compensation for 1280
...
Expand motor compenstion vector's range limit
12 years ago
Randy Mackay
8093c98cd3
Compass: add motor compensation to HIL library
12 years ago
Randy Mackay
d8515ff85e
Compass: basic compensation for motor interference
12 years ago
Andrew Tridgell
80eaa52ed8
AP_Compass: use report timestamp on PX4 for accurate timing
12 years ago
James Bielman
4fa7bb1486
Add AVR compatibility header for missing math.h definitions.
...
- Define float versions of math functions to the double versions
on AVR (eg. #define sinf sin).
- These macros appear to be missing in older versions of avr-libs.
- Include AP_Math.h rather than math.h to get these definitions.
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
Andrew Tridgell
60a4447a86
AP_Compass: added set_board_orientation() method
12 years ago
Andrew Tridgell
8f424cdf21
AP_Compass: ensure we check we got the semaphore
12 years ago
James Bielman
eca1417858
AP_HAL: Add semaphores to I2C driver.
...
- Guard I2C transactions with this semaphore in the MS5611 and
HMC5843 drivers.
12 years ago
Andrew Tridgell
26bc278181
AP_Compass: use queue length 10 in PX4 driver
...
and remove unnecessary poll() call
12 years ago
Andrew Tridgell
741174f5d5
AP_Compass: first cut at a PX4 compass driver
12 years ago
rmackay9
bf77a0f2e4
AP_Compass: added parameter descriptions
12 years ago
Andrew Tridgell
374af1cd14
build: change from Arduino.mk to apm.mk
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
a1187519a8
AP_HAL: use AP_HAL_BOARD_DRIVER in remaining test sketches
12 years ago
Pat Hickey
eb530b86e8
move Arduino.mk to /mk/Arduino.mk
12 years ago
Andrew Tridgell
7d27e420ae
AP_HAL: remove unnecessary Arduino.h includes
12 years ago
Andrew Tridgell
c181498e36
Compass: updates for new AP_Param API
12 years ago
Pat Hickey
475da4eca4
CONFIG_HAL_BOARD - test sketches fixed up, build all passes
12 years ago
Andrew Tridgell
b70f7f57ba
AP_Compass: restore low speed change on register read failure
12 years ago
Pat Hickey
a4f1f6a5db
AP_Progmem: fix dependencies for all sketches touched by AP_HAL_AVR
12 years ago
Pat Hickey
53432a1101
AP_Compass: ported to AP_HAL
12 years ago
Pat Hickey
3f1d9d7f69
AP_Param: #include <AP_Param.h> fixups for libraries & sketches
...
* I mostly went through with grep and added an #include <AP_Param.h> below
every #include <AP_Common.h>. Not all of these example sketches might
strictly need AP_Param.
12 years ago
Andrew Tridgell
daa4712078
AP_Compass: force I2C speed low in a couple more situations
12 years ago
Andrew Tridgell
8c2dadc12f
AP_Compass: print I2C error count in test sketch
12 years ago
Andrew Tridgell
6922dcdea2
Compass: added compass.accumulate() API
...
this allows us to accumulate mag readings using spare CPU cycles
13 years ago
uncrustify
04e48ef878
uncrustify libraries/AP_Compass/Compass.h
13 years ago
uncrustify
6bc9c5707f
uncrustify libraries/AP_Compass/AP_Compass_HMC5843.h
13 years ago
uncrustify
f534730fab
uncrustify libraries/AP_Compass/AP_Compass_HIL.h
13 years ago
uncrustify
4f9c6bbb19
uncrustify libraries/AP_Compass/AP_Compass_HMC5843.cpp
13 years ago
uncrustify
7840eebaef
uncrustify libraries/AP_Compass/Compass.cpp
13 years ago
uncrustify
d1190e1ed4
uncrustify libraries/AP_Compass/AP_Compass_HIL.cpp
13 years ago