Emile Castelnuovo
8f3a4bc88b
VRBRAIN: correction to AP_Compass_VRBRAIN.cpp
11 years ago
LukeMike
8f552d5758
VRBRAIN: Changed the management of VirtualRobotix's boards.
11 years ago
Andrew Tridgell
e9e1799700
AP_Compass: fixed VRBrain build
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
Jonathan Challinger
e883b889b6
SITL: Add compassmot interference
11 years ago
Kevin Hester
b7bed437c2
Compass: fixup line endings
11 years ago
Emile Castelnuovo
1bc199c5bd
AP_Compass: new files and definition for VRBRAIN board
11 years ago
Andrew Tridgell
485ae596fc
AP_Compass: fixed last_update for secondary compass with primary failed
...
this ensures EKF and DCM will use a secondary compass if the primary
fails
11 years ago
Matthew Lloyd
60a4f74de6
AP_Compass: avoid division by zero if we haven't received any mag reports
...
Otherwise, get_field() will return NaNs after once every few calls to
read() during compassmot on PX4 platforms, which causes compassmot to fail.
This is a quick hack around the deeper issue, which could be something
like the PX4 mag driver experiencing starvation and skipping mag reports,
buffer overrun or something else that causes mag reports to be dropped.
Or perhaps we should never expect in the first place that we will always
receive at least one mag report between calls to read().
11 years ago
Andrew Tridgell
db48ed9218
AP_Compass: fixed showing of is_external for 2nd compass
11 years ago
Andrew Tridgell
cf148fa76c
AP_Compass: improved COMPASS_ORIENT and COMPASS_EXTERNAL for Pixhawk
11 years ago
Andrew Tridgell
189d635493
AP_Compass: constrain compass offsets to +/- 2000
...
this is prompted by a user log showing NaN compass offsets, resulting
in a crash. The patch ensures we never end up with NaN offsets, and
also constrains the offsets to a reasonable limit
11 years ago
Andrew Tridgell
9bb8f73d56
Compass: split compass learning out to its own C++ file
11 years ago
Andrew Tridgell
54562b0b9a
AP_Compass: prevent bad initial values from affecting HMC5883 calibration
...
the first couple of values after we enter strap mode may be low, but
just above our 0.7 threshold. We now discard the first two values to
prevent these affecting the average.
Also added some commented out debug code and a comment on the scaling
of the calibration code
11 years ago
Andrew Tridgell
bc2d17e76e
AP_Compass: added vector compass setHIL method
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
0a7a935f63
AP_Compass: fixup
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
Randy Mackay
84fdff4cd6
Compass: slightly relax HMC5843 calibration limits
...
Some users have reported Z axis values as high as 1.33. Their compasses
seem otherwise health so extending the limits slightly.
11 years ago
Andrew Tridgell
1ccd6bb7ef
AP_Compass: don't wait more than 1ms for compass sample
...
this prevents 5ms delays in compass accumulate
12 years ago
Andrew Tridgell
f286369990
AP_Compass: fixed orientation on Linux
12 years ago
Andrew Tridgell
83c942a512
AP_Compass: prevent NULL deref on enable mag while running
12 years ago
Andrew Tridgell
da14ad2e2d
AP_Compass: neaten up HMC5883 debug
12 years ago
Andrew Tridgell
ce7d458855
AP_Compass: added Linux support to the compass test
12 years ago
Andrew Tridgell
6fc5b06043
AP_Compass: fixed some old Serial.print calls
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
Mike McCauley
4c65c42411
AP_Compass: fixed ARM 32 bit compatibility
12 years ago
Andrew Tridgell
229841052a
AP_Compass_PX4: removed MAGIOCSSAMPLERATE call
12 years ago
Andrew Tridgell
db14a85fc5
AP_Compass: added more debugging to AP_Compass_PX4 driver
...
this helps debug compass initialisation issues
12 years ago
Andrew Tridgell
b8b72819c1
AP_Compass: ignore COMPASS_ORIENT for internal compass
...
this means if COMPASS_ORIENT is not 0 and the external compass fails
to start on boot we don't end up with a bad compass orientation
12 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
97b7130bb9
libraries: update license header to GPLv3
...
we switched to GPLv3 a long time ago, but neglected to update the
per-file license headers
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
feac9d1306
AP_Compass: fixed a bug in the tilt compass calculation
...
The simplification applied a few months ago was incorrect
12 years ago
Tobias
ab311d1dd4
AP_Compass: removed comparison out of range compiler warning
...
uint_ >= 0 (-Wtype-limits)
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
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