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
Randy Mackay
ecb60955ff
AP_Compass: minor comment fix
...
Co-Authored-By: Peter Barker <pb-gh@barker.dropbear.id.au>
5 years ago
lukezhqin
32f11ba863
AP_Compass: fix thin_samples to avoid comparing sample to itself
5 years ago
Randy Mackay
f97cfd1065
AP_Compass: fix calibrator update when step one fails
5 years ago
Randy Mackay
89fa324a2b
AP_Compass: rename CompassCalibrator::clear to stop
5 years ago
Randy Mackay
90cfbe01e4
AP_Compass: remove unused calc_mean_squared_residuals
5 years ago
Randy Mackay
feb0f141fa
AP_Compass: add comments to calibrator
5 years ago
Randy Mackay
09046aec66
AP_Compass: formatting fixes
...
this should be a non-functional change
5 years ago
Randy Mackay
f58b09ebef
AP_Compass: constify get_completion_mask and remove use of auto
5 years ago
Randy Mackay
396cec96ee
AP_Compass: constify get_orientation
5 years ago
Andrew Tridgell
1fe146c409
AP_Compass: remove expected error
...
this happens with AK09916 probing on invensense sensor
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
Vlad-Andrei Dorobantu
83c641c76f
AP_Compass: corrected the cause of SIGSEGV signal when running AP_Compass_test
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
murata
ec0c49315f
AP_Compass: Change direct value to define name
5 years ago
Peter Barker
6193d6cf69
AP_Compass: fix example by instantiating Baro
...
Baro is required to get location, and Compass tries to get the declination based on current location
5 years ago
Andrew Tridgell
71ad90819e
AP_Compass: don't reset SITL compass offsets if set by user
...
makes for easier EKF compass bias learning testing
5 years ago
Andrew Tridgell
df387dc396
AP_Compass: allow rotation of BMM150 compass
5 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
f877def909
AP_Compass: removed default rotations for compass probe
...
this prevents bugs where the force_external and rotation are mixed up
in hwdef.dat causing incorrect rotations
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
bcb139f02f
AP_Compass: fixed uninitialised CAN device ID bits
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
Peter Barker
df01bed14f
AP_Compass: take GCS link in place of channel to calibration routines
6 years ago
Michael du Breuil
58dbbd6d0e
AP_Compass: Refactor battery current backend
6 years ago
Peter Barker
7b52c41287
AP_Compass: fix example by instantiating serial_manager
6 years ago
Michael du Breuil
9fc954b030
AP_Compass: Reduce scope of BattMonitor include
6 years ago
Andrew Tridgell
7206258587
AP_Compass: use new get_earth_field_ga() API
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
Andrew Tridgell
ba9b92c4af
AP_Compass: rename to EXPECT_DELAY_MS()
6 years ago
Andrew Tridgell
ecc6f15dc0
AP_Compass: use EXPECT_DELAY() macro
6 years ago
Andrew Tridgell
9e7929adf6
AP_Compass: removed unusued AP_Common/Semaphore.h
6 years ago
Phillip Kocmoud
1f827004be
AP_Compass: Enable AK09916 inside the ICM20948
6 years ago
Pierre Kancir
427a88a1fe
AP_Compass: fix AP_Compass_test
6 years ago
Peter Barker
bf23f1df67
AP_Compass: move responsibility for logging into library
6 years ago
Peter Barker
0e8722181f
AP_Compass: take responsibility for not running cal if armed
6 years ago
Andrew Tridgell
21aee52604
AP_Compass: flag compass cal as long expected delay
6 years ago
Siddharth Purohit
6dc94b0e3d
Compass: fix compass orientation for AK09916 on Cube
6 years ago
Peter Barker
5455d27e84
AP_Compass: specify floating point constants
...
Probably indicates compiler floating-point-constants directive isn't
working
6 years ago
Peter Barker
7ae7c48362
AP_Compass: remove set_and_save_offsets taking integer parameters
...
because the only caller that mattered had floats to offer...
6 years ago
Michael du Breuil
d65f4b5ff8
AP_Compass: Fix implicit include of SRV_Channel
6 years ago
Sagnik Bhattacharya
4c809888de
AP_Compass: add more comments to example
6 years ago