ljwang
5a7ec7d429
Delete write registers at start,using another way to repair
8 years ago
ljwang
648871a388
Fixed the QMC5883 identification,add check ID
8 years ago
Randy Mackay
a657daf635
Compass: disable QMC5883 compass driver by default
...
This driver causes occasional heading issues so disabling until these are resolved
8 years ago
Kevin Lopez Alvarez
df406c4389
AP_Compass : increase max possible offset
8 years ago
Kevin Lopez Alvarez
17f2393c1b
AP_Compass: Decrease LIS3MDL ODR and timer
8 years ago
Kevin Lopez Alvarez
08b531e6a8
AP_Compass: LIS3MDL correct orientation
8 years ago
Kevin Lopez Alvarez
cf8c1c2665
AP_Compass: Remove comments and use correct board number
8 years ago
Kevin Lopez Alvarez
1467daee2a
AP_Compass: add ppro support
...
disable lis3mdl for now
8 years ago
Andrew Tridgell
732dc5984a
AP_Compass: added COMPASS_TYPEMASK parameter
...
this allows driver type to be disabled, to avoid probing them and
wasting CPU on sensors that are not being used
This also moves UAVCAN compass to be detected last, as discussed in the
dev call
8 years ago
Peter Barker
6b53b5b5f3
AP_Compass: make handle_mag_cal_command return type stricter
8 years ago
ljwang
603e903ccd
AP_Compass: QMC5883 Add internal i2c bus and fix rotation error
8 years ago
Eugene Shamaev
aa1f6a7587
AP_Compass: united enumeration on startup, multiple CAN drivers, correct dev_id based on network and node ID
8 years ago
Miguel Arroyo
ee328c9683
AP_Compass: move SITL Compass to standard sensor backend model
8 years ago
Andrew Tridgell
f3d995a716
AP_Compass: improved robustness of BMM150 detection code
...
cope with bus errors on startup
8 years ago
Andrew Tridgell
68460144df
AP_Compass: added retries on init in BMM150
8 years ago
Andrew Tridgell
9b093c4a33
AP_Compass: fixed a numerical issue in BMM150 driver
...
we were getting the following:
ret=-32768 z=5 rhall=6267 z1=23743 z2=712 z3=-1035 z4=0 xyz1=6264 dividend=163840 dividend2=-1073577207 divisor=5253
the signed/unsigned casts for rhall and xyz1 did not produce the
desired result
8 years ago
Andrew Tridgell
0623db98d6
AP_Compass: cope with bus errors in BMM150
...
if we have bus errors the BMM150 can get confused, giving rubbish
output. This uses the checked register code to reset, and a full soft
reset after 250ms of no samples.
8 years ago
Andrew Tridgell
fa3d40af8a
AP_Compass: fixed shift typo
...
this doesn't affect LE MCUs like STM32
8 years ago
Andrew Tridgell
a0e4ec0f3a
AP_Compass: fixed bitmask typo
8 years ago
Touch
5da2e0b3fb
Update code format
8 years ago
ljwang
8fff1ec4d4
add QMC5883L driver for GPS compass module
8 years ago
ljwang
e648f2e61e
add QMC5883L driver for GPS compass module
8 years ago
Andrew Tridgell
bcd305c821
AP_Compass: fixes for merge with master
8 years ago
Andrew Tridgell
04430457d5
AP_Compass: attempts to diagnose the twitches in MMC3416
8 years ago
Andrew Tridgell
36932a2959
AP_Compass: implement full state machine for MMC3416
...
this uses 100Hz readings most of the time, but does slow offset
readings every 50 samples
8 years ago
Andrew Tridgell
167988b5c4
AP_Compass: implement MMC3416 temperature compensation
...
this is much slower, but removes temperature offset
8 years ago
Andrew Tridgell
736fb715ec
AP_Compass: MMC3416 magnetometer driver
8 years ago
Randy Mackay
1ce2a7fcee
AP_Compass: resolve AK09916 driver compiler warning
8 years ago
Andrew Tridgell
d946d5da6f
AP_Compass: enable AK09916 inside a ICM20948
...
the ICM20948 has an AK09916 which can be accessed via I2C bypass
8 years ago
mirkix
d9d3d97e54
AP_Compass: BeagleBone Blue add external compass HMC5843
8 years ago
Dr.-Ing. Amilcar Do Carmo Lucas
4c45b1c7ca
AP_Compass: Use SI units conventions in parameter units
...
Follow the rules from:
http://physics.nist.gov/cuu/Units/units.html
http://physics.nist.gov/cuu/Units/outside.html
and
http://physics.nist.gov/cuu/Units/checklist.html
one further constrain is that only printable (7bit) ASCII characters are allowed
8 years ago
murata
46cba2c970
libraries: Delete the setting value for specific editor.
8 years ago
Peter Barker
b39da462ec
AP_Compass: use HAL_SEMAPHORE_BLOCK_FOREVER macro
8 years ago
Andrew Tridgell
45f27ceb9c
AP_Compass: rename macros to avoid conflicts
...
these macros were also defined in NuttX in clock.h
8 years ago
Eugene Shamaev
b3d9126407
AP_Compass: removal of legacy UAVCAN support
8 years ago
Pierre Kancir
d3e27d8720
AP_Compass: example fix travis warning
...
missing function declaration
implicit cast
some style fix
8 years ago
Eugene Shamaev
3e044c7b8a
AP_Compass: support for UAVCAN connected magnetometers
8 years ago
Andrew Tridgell
ee2afd3242
AP_Compass: added COMPASS_OFFS_MAX
...
this allows setup of airframes with hatch magnets
8 years ago
Lucas De Marchi
5787b5a5c5
AP_Compass: IST8310: rename macros
...
Having "BIT" in the name gives the impression we are using the macro is
the bit position; however they have the values for those actions, not
the bit position. Rename BIT to VAL to be less confusing.
8 years ago
Lucas De Marchi
4bba643abb
AP_Compass: IST8310: use variable periodic callback
...
This is the equivalent of sleep and wait for the conversion time,
after had triggered a new sample request. However it also has the added
benefits of sharing a thread with other sensors on the same bus.
Now we don't read the status register anymore since we have a guaranteed
wait time.
8 years ago
Lucas De Marchi
ce1a13aa8f
AP_Compass: IST8310: use FSR to reject samples
8 years ago
Lucas De Marchi
d84851d8fa
AP_Compass: IST8310: improve initialization
...
- Make sure device is reset while initializing.
- Give better names to register macros
- Average X, Y and Z by 16: sensor is internally running at 200 sps
(theoretical, ~160 pratical). The wait time is ~6msec averaging
by 16. We do 10msec.
8 years ago
Tom Pittenger
c0691afc1f
AP_Compass: reject outlier data in IST8310 data by detecting >14bit data
8 years ago
Tom Pittenger
8415fde697
AP_Compass: IST8310 chip does not follow right-hand rule format, flip z
8 years ago
Lucas De Marchi
b339050e45
AP_Compass: IST8310: account for errors in measurment requests
...
If we don't recover for errors in the request for new sample, we may get
stuck with no sample anymore. Recover from bad transfers.
8 years ago
Lucas De Marchi
156efd6fec
AP_Compass: use IST8310 for aerofc
8 years ago
Andrew Tridgell
37c9e08316
AP_Compass: support AUAV21 board
8 years ago
Jacob Walser
7121910fa7
AP_Compass: Set default learn parameter to disabled for Sub
8 years ago
murata
bc7b2144e7
AP_Compass: Change from magic number 0 to definition name.
8 years ago
Lucas De Marchi
dd98fc75a9
AP_Compass: BMM150: fix sampling time
...
We configure the sensor with an ODR of 30 Hz. There's no need to keep
calling the update function at 100Hz.
8 years ago