murata
7ec0cb47a5
AP_Compass: const extern hal reference
5 years ago
Andrew Tridgell
6d42e9502b
AP_Compass: fixed unreg compass check for AP_Periph
...
this fixes detection of compasses on peripherals where
COMPASS_MAX_UNREG_DEV is 0
5 years ago
Peter Barker
0665c379de
AP_Compass: correct use of incorrect backend-count macro
5 years ago
Peter Barker
934d05f4ff
AP_Compass: correct incorrect and misleading comment
5 years ago
Rishabh
cbccdfa8a3
AP_Compass: Alert GCS if user tries to calibrate compass while vehicle is armed
5 years ago
Andrew Tridgell
8f83bf5e80
AP_Compass: fixed in-flight learning for all compasses
...
after recent changes only first compass was learnt
See
https://discuss.ardupilot.org/t/break-in-latest-master-in-flight-compass-calibration/52602
5 years ago
Siddharth Purohit
f00a39af52
AP_Compass: run style script on Compass.cpp
5 years ago
Siddharth Purohit
8d227d401a
AP_Compass: modify compass driver to support consistent ordering and hotplugging
5 years ago
Siddharth Purohit
defc1b5fcb
ArduCopter: add arming message for compass not detected but assigned
5 years ago
Andrew Tridgell
521cf4d6a1
AP_Compass: removed annoying startup messages
...
these happen due to sensor probing for older configs
5 years ago
Peter Barker
cc3f6468e3
AP_Compass: mark some parameters as Calibration parameters
5 years ago
Andrew Tridgell
0ca45059ac
AP_Compass: make all semaphores recursive
...
the cost is very similar and this prevents an easy coding error which
can occur on less used code paths
5 years ago
Andrew Tridgell
4ee6fb9cdf
AP_Compass: use take_blocking instead of HAL_SEMAPHORE_BLOCK_FOREVER
...
this makes for cleaner and smaller code as the failure case is not
needed
5 years ago
Peter Hall
c870df0351
AP_Compass: get_time_flying in vehicle
5 years ago
Andrew Tridgell
ebceab9aa0
AP_Compass: don't probe for ICM20948 on AP_Periph
5 years ago
Andrew Tridgell
270844745f
AP_Compass: limit rotations we try to ROTATION_MAX_AUTO_ROTATION
5 years ago
Pierre Kancir
d332773689
AP_Compass: add register to checked ones and remove single-use goto
...
Also fix comment on TMRC register setting
5 years ago
Pierre Kancir
d6563bff7d
AP_Compass: probe for RM3100
5 years ago
Andrew Tridgell
09d7e732b7
AP_Compass: added mag_cal_fixed_yaw()
...
this is a fast compass calibration that uses a yaw value provided by
the user.
5 years ago
Peter Barker
880af0de4a
AP_Compass: tidy constructor
5 years ago
Peter Barker
823f2bb217
AP_Compass: make compass_cal_status_t enum class Status within CompassCalibrator
5 years ago
Andrew Tridgell
303030c524
AP_Compass: narrow range of allowed scale factor
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
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
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
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