Andrew Tridgell
0f08b47322
AP_Compass: use NEW_NOTHROW for new(std::nothrow)
2024-06-04 09:20:21 +10:00
Andrew Tridgell
80730d6c02
AP_Compass: use tesla conversion from AP_Math/definitions.h
2023-12-17 09:47:30 +11:00
Peter Barker
69bc24bc16
AP_Compass: add and use AP_COMPASS_RM3100_ENABLED
2023-02-22 19:40:13 +11:00
murata
a19d4b65fc
AP_Compass: Console output can be disabled
2022-05-17 09:53:06 +10:00
bugobliterator
957da68da5
AP_Compass: fix compilation issue with declaring var after goto
2021-12-15 22:11:10 +11:00
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
2021-11-24 07:17:13 +11:00
Peter Barker
0f2bcea647
AP_Compass: remove use of Vector3 as function
2020-06-16 11:06:47 +10:00
Andrew Tridgell
a0cf4e158a
AP_Compass: revert change to RM3100 scale factor and increase scale limit
...
This reverts the change from #13895 and instead resolves the issue by
increasing the scale factor limit to 1.4
There is an open question as to why some RM3100 compasses show a
different scale factor (by about 1.25 times) to other versions of the
same sensor. As we haven't resolved this properly it seems the correct
thing to do is follow the datasheet but allow for a wider range of
scale factors to cope with the variation between sensors
2020-05-24 15:06:15 +10:00
Andrew Tridgell
18c3efc377
AP_Compass: fixed scaling of RM3100
...
scale factor was off by 200/256, resulting in COMPASS_SCALE of about
1.28
thanks to Arace for noticing
2020-04-08 11:21:51 +10:00
Siddharth Purohit
8d227d401a
AP_Compass: modify compass driver to support consistent ordering and hotplugging
2020-02-19 13:59:53 +09:00
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
2020-01-19 20:19:30 +11:00
Pierre Kancir
d332773689
AP_Compass: add register to checked ones and remove single-use goto
...
Also fix comment on TMRC register setting
2019-12-21 09:07:20 +11:00
Andrew Tridgell
0ec3f80bbe
AP_Compass: enable LIS3MDL on I2C and RM3100 on SPI
2019-08-27 10:29:56 +10:00
thomass
513964cdad
AP_Compass: RM3100 simplify unisgned to signed integer conversion
2019-02-10 08:00:49 +11:00
thomass
97f3627bd5
AP_Compass: RM3100 added default cycle count value check on initialization as a whoami substitute
2019-02-10 08:00:49 +11:00
thomass
488133c396
AP_Compass: RM3100 make compliant with common methods for accumulating and draining samples
2019-02-10 08:00:49 +11:00
thomass
ede80773b9
AP_Compass: RM3100 stop passing frontend for compliance with backend class
2019-02-10 08:00:49 +11:00
thomass
8155c8b178
AP_Compass: added backend implementation for RM3100 compass
2019-02-10 08:00:49 +11:00