Andrew Tridgell
1fd0ed4e1f
AP_Compass: switch to a general method of heater compensation
...
this allows any board to easily setup heater compensation for an
internal compass. The offsets are in body frame (previously in sensor
frame) and are sensor specific using bus device IDs
3 years ago
Andrew Tridgell
7b4d521539
AP_Compass: HAL_COMPASS_DISABLE_IST8310_INTERNAL_PROBE for Pixhawk6C
3 years ago
Andrew Tridgell
a3ff458528
AP_Compass: removed "AK09916 Wrong id" message
...
we don't need this on every board that doesn't have an I2C AK09916
3 years ago
Peter Barker
5f39602d8c
AP_Compass: do not use GSF if any model has been clipped
3 years ago
Andrew Tridgell
3c6e4d907c
AP_Compass: fixed custom orientation in 3 compass drivers
...
this prevents an internal error and mag failure with DroneCAN, MSP or
ExternalAHRS compasses
3 years ago
Joshua Henderson
dc8df8f147
AP_Compass: add define for COMPASS_ENABLE
3 years ago
Peter Barker
ef2fd1f4ba
AP_Compass: remove HAL_COMPASS_DEFAULT define
...
this doesn't actually allow you to specify a default, despite the name
and a couple of hwdefs trying to use it that way.
This would have stopped being useful when we did the
compass-prority-table stuff - or before.
3 years ago
Peter Barker
38abec2133
AP_Compass: rename AP_AHRS::get_position to get_location
3 years ago
Andrew Tridgell
3f2a72f9db
AP_Compass: only magcal detected compasses
...
inflight compass learning with COMPASS_LEARN=3 was not working with
less than 3 compasses, as the force_use parameter was preventing
skipping compasses. This fixes it to calibate all detected compasses
that have USE enabled
3 years ago
Peter Barker
ed608d37f6
AP_Compass: add and use AP_SIM_COMPASS_ENABLED
3 years ago
Willian Galvani
c285f4c748
AP_Compass: Retry reading MMC5983 ID up to 10 times
3 years ago
Andrew Tridgell
45bfc75e4b
AP_Compass: added register checking for AK09916 mode
...
this allows AK09916 on I2C to recover from a power outage in flight
3 years ago
Jaaaky
d27f122295
AP_Compass: Fix multi #include's
3 years ago
bugobliterator
957da68da5
AP_Compass: fix compilation issue with declaring var after goto
3 years ago
Hwurzburg
8ddb12d9cb
AP_Compass: change UAVCAN in metadata to DroneCAN
3 years ago
Peter Barker
31dd17a743
AP_Compass: avoid loaded-value checks in case of HAL_USE_EMPTY_STORAGE
3 years ago
Andrew Tridgell
8eb40bafc5
AP_Compass: revert compass parameter changes
3 years ago
Iampete1
7ad1886667
AP_Compass: reinstate MOTCT underscore
3 years ago
Iampete1
bf21ce8af6
AP_Compass: add new line after old param metadata
3 years ago
Iampete1
e24c90a871
AP_Compass: reinstate old param descriptions
3 years ago
Iampete1
6ba87dfe9a
AP_Compass: add param conversion
3 years ago
Iampete1
2fa2e70e7e
AP_Compass: SITL: use new scale param
3 years ago
Iampete1
071ff39ff8
AP_Compass: move instance params to shared table
3 years ago
Andrew Tridgell
a4a0607160
AP_Compass: added AP_RM3100_REVERSAL_MASK
...
this allows for fixing setups where the RM3100 has been installed on a
board with one or more axes reversed
3 years ago
Patrick José Pereira
91ea129be3
AP_Compass: Add support to AK09915
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
3 years ago
Willian Galvani
4c756fd7ef
AP_Compass: update MMMC5XX3 driver to support only mmc5983
...
Registers changed
Product ID changed
Data is now Big endian
Results are now 18 bits instead of 16, but we only consume 16.
Added SPI support
Co-authored-by: Patrick Pereira <patrickelectric@gmail.com>
Co-authored-by: Jacob Walser <jwalser90@gmail.com>
3 years ago
Iampete1
1771481779
AP_Compass: never override custom orentation in calabration
3 years ago
Peter Barker
0627ee66c5
AP_Compass: clarify all_configured calculations
3 years ago
Buzz
8d9f161b40
AP_Compass: add support for ICM20948 I2C variant and rename existing one as SPI variant
...
Author: Charles Villard <charlesvillard10@gmail.com>
Author: Buzz <davidbuzz@gmail.com>
3 years ago
Andrew Tridgell
2b19b8a988
AP_Compass: switched to GSF based compass learning
...
this makes inflight compass learning faster, more accurate and much
simpler
3 years ago
Andrew Tridgell
b0674a2b35
AP_Compass: support 2nd address for ICM20948 compass
3 years ago
Pierre Kancir
12e1f67326
AP_Compass: only update last_update_ms on raw_field update if on calibration
3 years ago
Andrew Tridgell
613f970870
AP_Compass: added AK09918 support
...
minor update over AK09916
3 years ago
Hwurzburg
3b543a8ceb
AP_Compass: Change orientation labels to match order of rotation
3 years ago
Tom Pittenger
d45526ff42
AP_Compass: fix periph-heavy compile errors with different things enabled
3 years ago
Peter Barker
224ff97f5c
AP_Compass: move from HAL_NO_GCS to HAL_GCS_ENABLED
3 years ago
Peter Barker
875b6331a4
AP_Compass: fix examples for AP_AHRS_DCM becoming backend
3 years ago
Pierre Kancir
4481bc6147
AP_Compass: fix externalAHRS detection
...
'A = B >= C' kind. The expression is calculated as following: 'A = (B >= C)'
4 years ago
Peter Barker
62f6a5b033
AP_Compass: fail calibration unless at least 1 compass to cal
4 years ago
Andrew Tridgell
ffe8add56d
AP_Compass: mark logger Write() calls as streaming where appropriate
4 years ago
bugobliterator
33f9c38528
AP_Compass: change class name from SITL::SITL to SITL::SIM
4 years ago
Peter Barker
944b82a7be
AP_Compass: make is_calibrating const
4 years ago
Peter Barker
d5ea202c20
AP_Compass: mark COMPASS_ENABLED as @RebootRequired
4 years ago
Peter Barker
c351150a46
AP_Compass: use AP::compass().available in place of enabled()
4 years ago
Peter Barker
1d9bfdf8dd
AP_Compass: stop using AHRS as conduit for Compass pointer
4 years ago
Peter Barker
658c978c9d
AP_Compass: add and use compass.available()
...
Covers both being enabled and initialised
4 years ago
Peter Barker
8bbed968de
AP_Compass: remove unused variable
4 years ago
Iampete1
e5d4620372
AP_Compass: update orientation param values
4 years ago
Iampete1
78e025af39
AP_Compass: add Calibrator index test
4 years ago
Iampete1
36a80d46e3
AP_Compass: support auto orientation for new rotations
4 years ago