Andrew Tridgell
ebceab9aa0
AP_Compass: don't probe for ICM20948 on AP_Periph
5 years ago
Pierre Kancir
d6563bff7d
AP_Compass: probe for RM3100
5 years ago
Andrew Tridgell
421fbef2a0
AP_Compass: added COMPASS_OPTIONS
...
this allows user to set that calibration requires GPS lock
5 years ago
Andrew Tridgell
6fd0ca36aa
AP_Compass: added estimation of compass scale factor
...
this adds new COMPASS_SCALE, COMPASS_SCALE2 and COMPASS_SCALE3
parameters, which give the sensor scaling factor. It is used to
compensate for an incorrect scaling in a compass.
The 3D compass calibration process will set the correct value
automatically, otherwise users can set the value to a known value for
an existing compass
5 years ago
Andrew Tridgell
513e483821
AP_Compass: disable HIL for AP_Periph
...
this saves several k of flash
5 years ago
Randy Mackay
01c36fa6aa
AP_Compass: LEARN param default to 0 for all vehicles
5 years ago
Andrew Tridgell
7ad91fa1c9
AP_Compass: don't show too many params when max compasses 1
5 years ago
Peter Barker
8e412d0885
AP_Compass: adjust for new vehicle base class
5 years ago
Andrew Tridgell
df387dc396
AP_Compass: allow rotation of BMM150 compass
6 years ago
Andrew Tridgell
1cb775e2c2
AP_Compass: probe more addresses for IST8310
...
IST8310 can be on 4 possible i2c addresses
6 years ago
Andrew Tridgell
bd0760f9d4
AP_Compass: removed unusued compass probes
...
now only use probe lists
6 years ago
Andrew Tridgell
3bc8522b54
AP_Compass: added ROTATION_NONE to probes
...
we no longer use defaults in the headers
6 years ago
Andrew Tridgell
2a48241ebb
AP_Compass: fixed naming of QMC5883L driver
...
needed for probe using COMPASS macro in hwdef.dat
6 years ago
Andrew Tridgell
f4576ec8f3
AP_Compass: reduce firmware size for AP_Periph
6 years ago
Andrew Tridgell
0ec3f80bbe
AP_Compass: enable LIS3MDL on I2C and RM3100 on SPI
6 years ago
Peter Barker
1adda1ccf0
AP_Compass: move automatic declination setting into AP_Compass itself
6 years ago
Andrew Tridgell
38c775e6df
AP_Compass: removed old mRoControlZeroF7 config
6 years ago
Andrew Tridgell
481ae22671
AP_Compass: support new sensor config setup
6 years ago
Andrew Tridgell
532b82b3a3
AP_Compass: use DRIVER_HMC5843 to match driver name
6 years ago
Phillip Kocmoud
1f827004be
AP_Compass: Enable AK09916 inside the ICM20948
6 years ago
Peter Barker
bf23f1df67
AP_Compass: move responsibility for logging into library
6 years ago
Siddharth Purohit
6dc94b0e3d
Compass: fix compass orientation for AK09916 on Cube
6 years ago
Peter Barker
54e3959a99
AP_Compass: move enabled parameter into compass library
6 years ago
Peter Barker
f8be4efed4
AP_Compass: init never fails; return void rather than bool
6 years ago
Siddharth Purohit
6ff8f52957
AP_Compass: add support for AK09916 connected over fourth IMU over I2C
6 years ago
Siddharth Purohit
cff8bf14b7
AP_Compass: add support for AK09916 via invensensev2 aux bus
6 years ago
Andrew Tridgell
7f3103073a
AP_Compass: setup for fmuv6
6 years ago
thomass
8155c8b178
AP_Compass: added backend implementation for RM3100 compass
6 years ago
Andrew Tridgell
700519d805
AP_Compass: raise default max compass offsets
...
the larger offset doesn't present any problems for the compass
drivers, and helps on planes with magnetic hatches
6 years ago
Andrew Tridgell
a21f4dc0c9
AP_Compass: update COMPASS_LEARN docs
6 years ago
Andrew Tridgell
1b95f17940
AP_Compass: removed F4Light
6 years ago
Randy Mackay
68363ff4a2
AP_Compass: devid param desc include ReadOnly
6 years ago
Phillip Kocmoud
27a2b8a350
AP_Compass: Increase default MAX compass offset
...
After discussing the @tridge and @rmackay9 it was suggested that raising the maximum allowable compass offset value would allow users of the LIS3MDL and possibly others with larger compass offsets to fly with the default setting.
This has been deemed a fairly safe change that still allows for sufficient overhead to prevent saturation.
6 years ago
Lucas De Marchi
9d95579b2d
AP_Compass: update TYPEMASK documentation
...
Add missing drivers IST8308 and MAG3110.
6 years ago
Lucas De Marchi
34fb98b1e0
AP_Compass: probe for IST8308 on external buses
6 years ago
Andrew Tridgell
5ac6309848
AP_Compass: enable in-flight compass learning system
...
using COMPASS_LEARN=3
6 years ago
vierfuffzig
b455c7a769
AP_Compass: add rotation option for AK8963_MPU9250
...
allows using non-neutrally rotated AK8963 compass on MPU9250 as internal
reference: https://github.com/ArduPilot/ardupilot/pull/9459
6 years ago
Lucas De Marchi
cd9b08dbae
AP_Compass: rename variable for more buses
...
"all_external" reflects better the fact that we can have more than 2
buses (and now we are using the foreach macro).
7 years ago
Lucas De Marchi
de535dc573
AP_Compass: remove unused external and name arguments
...
Aka "fix copy and pasta".
7 years ago
Lucas De Marchi
4039b51810
AP_Compass: stop passing frontend pointer
...
Let AP_Compass_Backend call AP::compass() *once* instead of passing
the frontend pointer over and over.
7 years ago
Lucas De Marchi
585b6dce0d
AP_Compass: support more external compasses on aerofc
...
Let it probe on external bus. Aerofc has an HMC5883 on internal bus, but
we don't want it enabled as it interferes with the internal baro. Also
the rotation for the compass that comes with Aero RTF is different from
the other that got added later. That means people would need to orient a
third party IST8310-based compass differently on Aero RTF than on other
boards... that's a problem of having orientation based on the chip that
can't be solved on this commit.
7 years ago
Siddharth Purohit
14b701cff8
AP_Compass: move UAVCAN mag subscribers and handlers to Compass Backend
7 years ago
Andrew Tridgell
3ed7c060df
AP_Compass: address review comments
7 years ago
Jonathan Challinger
cefd998177
AP_Compass: add expected DEV_ID parameters
7 years ago
Jonathan Challinger
878e84a015
AP_Compass: correct edge case where checks pass when saved dev_id != detected dev_id
7 years ago
Randy Mackay
99b54935db
Compass: remove accumulate
...
this method is a noop on all backends
7 years ago
Andrew Tridgell
2ded88e611
AP_Compass: allow override of QMC5883L orientation
7 years ago
Andrew Tridgell
e39d070b78
AP_Compass: clear DEV_ID for undetected compasses
...
this prevents user confusion with the number of compasses detected
7 years ago
Andrew Tridgell
b181340fd9
AP_Compass: allow override of COMPASS_AUTO_ROT
7 years ago
Andrew Tridgell
027beb0dc1
AP_Compass: rename COMPASS_ROT_AUTO to COMPASS_AUTO_ROT
...
request from Randy
7 years ago