Commit Graph

10 Commits

Author SHA1 Message Date
Andrew Tridgell
83c6327873 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-23 15:05:03 +10:00
Andrew Tridgell
cbb1512ebc AP_Compass: merged in compass device ID changes from master 2020-05-11 19:38:28 +10:00
Andrew Tridgell
8787ca868a 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-05-06 15:12:08 +09:00
Pierre Kancir
2d0ae6112e AP_Compass: add register to checked ones and remove single-use goto
Also fix comment on TMRC register setting
2019-12-23 18:02:59 +09: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