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
Andrew Tridgell
64a8f00a77
AP_Compass: disable esoteric compass drivers on FMUv2
8 years ago
murata
af47a8e91c
AP_Compass: Unify from print or println to printf.
8 years ago
Randy Mackay
855125381d
AP_Compass: relax compass cal fitness and consistency checks
8 years ago
Randy Mackay
53d1585ebf
Compass: relax compass consistency checks for pixracer
8 years ago
Randy Mackay
0c4e3cd8e4
Compass: pixracer calibration fitness default relaxed
8 years ago
Andrew Tridgell
58a0a6a2fc
AP_Compass: disable lis3mdl for now
...
pending investigation of possible hw error
8 years ago
Lucas De Marchi
5472bc4de1
Global: change Device::PeriodicCb signature
...
Remove bool return as it's never being used and not supported on PX4.
8 years ago
murata
a2649949df
AP_Compass: Changed if statements to switch statement.
8 years ago
Andrew Tridgell
790d186c6c
AP_Compass: switched to unified Invensese driver for AK8963
8 years ago
Andrew Tridgell
a440ac4c9d
AP_Compass: use a set_and_notify for external and IDs
...
ensure that GCS that connects quickly gets the right value
fixes issue #5364
8 years ago
Lucas De Marchi
899fce53ff
AP_Compass: IST8310: minor fixes and refactors
...
- Inline code that needs to take and release the lock in init()
function, just like other drivers
- Minor changes to coding style and renames to be similar to other
drivers
8 years ago
Georgii Staroselskii
f061572e13
AP_Compass: add IST8310 support
...
One needs to specify I2C address and a bus number in AP_Compass.cpp to use it.
8 years ago
Pierre Kancir
385e5badd8
Ap_Compass: LIS3MDL fix order
8 years ago
Pierre Kancir
c49c851a57
Ap_Compass: AK09916 fix order
8 years ago
Andrew Tridgell
a1bce2b54d
AP_Compass: use get_random16()
8 years ago
Andrew Tridgell
4f1f6ec019
AP_Compass: added retries during init for i2c devices
...
higher in init, lower for run
8 years ago
Georgii Staroselskii
865ff753f3
AP_Compass: use LSM9DS1 as primary for Navio 2
...
This compass has been proved to work better on Navio boards. Users also
don't like high offsets (even though, they don't really mean much in
this context) reported by AK8963 in MPU9250 on Navio 2.
8 years ago
Alexey Bulatov
96db31635d
AP_Compass: set orientation ROLL_180 for LSM9DS1 on Navio2
8 years ago
Alexey Bulatov
163fa07ac0
AP_Compass: make orientation of LSM9DS1 compass configurable
8 years ago
Randy Mackay
5009e83b6d
AP_Compass: fix build warning for HMC5843
8 years ago
Andrew Tridgell
28b3de91cf
AP_Compass: fixed orientation of internal i2c compass for FMUv1
...
thanks to Peter for noticing
8 years ago
Andrew Tridgell
7d57f00ca0
AP_Compass: removed debug line
...
this is now common when using in-tree drivers
8 years ago
Andrew Tridgell
f62972d966
AP_Compass: fixed build on bhat
...
enable both compasses if found
8 years ago
Andrew Tridgell
1f403b02ef
AP_Compass: switch to continuous 155Hz mode for LIS3MDL
8 years ago
Andrew Tridgell
62805f59fa
AP_Compass: added AK09916 driver
...
yet another magnetometer!
8 years ago
Andrew Tridgell
17a117b324
AP_Compass: be a bit less verbose in startup
8 years ago
Andrew Tridgell
0e4b8781b2
AP_Compass: auto-detect LIS3MDL compass
8 years ago
Andrew Tridgell
b6b2919126
AP_Compass: don't panic on too many compasses
...
just use the first ones found. Panicing because you have too many
isn't useful
8 years ago
Andrew Tridgell
40ef68f104
AP_Compass: added a LIS3MDL compass driver
8 years ago
Lucas De Marchi
c6b0a71c47
AP_Compass: Calibrator: use inplace initializer on array
8 years ago
Siddharth Bharat Purohit
b36ee10e7c
AP_Compass: fix wrong memset in compass calibrator
8 years ago
Andrew Tridgell
e4454c5056
AP_Compass: setup for new PX4 board IDs
8 years ago
Andrew Tridgell
0eac781559
AP_Compass: don't run the AK8963 on the external MPU9250
...
this saves us one mag slot for another external mag, and leaves the
primary MPU9250 undisturbed by the mag traffic on the bus
8 years ago
Andrew Tridgell
3d5c57c5dc
AP_Compass: fixed orientation of PH2 in-tree compass drivers
8 years ago
Andrew Tridgell
4ba00720aa
AP_Compass: make init() private
...
not called from frontend
8 years ago
Andrew Tridgell
c68a6451cb
AP_Compass: use in-tree drivers for PH2SLIM
8 years ago
Andrew Tridgell
4602b4d679
AP_Compass: improve init and calibration of hmc5843
8 years ago
Andrew Tridgell
3d48a72f59
AP_C0mpass: switch pixracer to always use in-tree drivers
8 years ago
Andrew Tridgell
b363a65c2e
AP_Compass: enable in-tree drivers for PHMINI
8 years ago
Andrew Tridgell
875fa60452
AP_Compass: fixed external I2C HMC5983 rotation on pixhawk
8 years ago
Andrew Tridgell
bd8867be38
AP_Compass: cope with NULL dev pointer in driver probe functions
8 years ago
Andrew Tridgell
3b53caad87
AP_Compass: keep old hmc5843 ID
...
prevent re-use. thanks to Lucas
8 years ago
Andrew Tridgell
02c2ba1331
AP_Compass: fixed dup semaphore bug
...
thanks to Lucas for spotting this!
8 years ago
Andrew Tridgell
f31a017ace
AP_Compass: changes to HMC5843 driver
...
this makes the HMC5843 use single-shot mode, which makes it more
robust to bus resets. It also adds WHOAMI checking and enables
automatic temperature compensation.
Unfortunately this makes existing calibration values incompatible, so
a re-cal is required. The device ID has been changed to reflect the
driver change.
8 years ago
Andrew Tridgell
05769640d1
AP_Compass: support rotations on AK8963
8 years ago