Hayden
fa800e23e2
AP_Compass: Move health to cpp and add range check
...
Moved the health check to the cpp file and added checking of max instances
2023-05-24 12:39:47 +10:00
Peter Barker
7088286ebf
AP_Compass: use new vector methods to make for more compact code
...
The check for zero-length magnetic field on the primary is redundant given the one on the loop
2023-04-19 14:25:06 +10:00
Andrew Tridgell
ba450fa08b
AP_Compass: text messages and more defines
2023-04-11 10:31:31 +10:00
Andrew Tridgell
e469ed9bd7
AP_Compass: rename more variables, types and defines
2023-04-11 10:31:31 +10:00
Andrew Tridgell
dc40e1e7c3
AP_Compass: change UAVCAN_ENABLED to DRONECAN_ENABLED
2023-04-11 10:31:31 +10:00
Andrew Tridgell
992409328f
AP_Compass: update header references
2023-04-11 10:31:31 +10:00
Andrew Tridgell
2e8ea6ac47
AP_Compass: rename UAVCAN drivers to DroneCAN
2023-04-11 10:31:31 +10:00
Andrew Tridgell
34f70b98b3
AP_Compass: rename AP_UAVCAN to AP_DroneCAN
2023-04-08 07:11:23 +10:00
bugobliterator
7112d156ed
AP_Compass: replace libuavcan with libcanard based driver
2023-03-29 17:16:39 +11:00
Peter Barker
4755f76126
AP_Compass: specify compass feature enables for periph in chibios_hwdef.py
2023-03-12 09:35:35 +11:00
Andrew Tridgell
9cda7b5ccc
AP_Compass: drop MMC5xx3 sample rate to 100Hz
...
this was consuming too much of the I2C bus sampling at 1kHz
2023-03-06 17:24:29 -08:00
Peter Barker
252498fb29
AP_Compass: move removal of BMM150 down into hwdef
...
There's no reason apart from space to not have this in
2023-03-01 18:28:29 +11:00
Peter Barker
1889d3dea5
AP_Compass: add and use AP_COMPASS_MMC5XX3_ENABLED
2023-02-22 19:40:13 +11:00
Peter Barker
69bc24bc16
AP_Compass: add and use AP_COMPASS_RM3100_ENABLED
2023-02-22 19:40:13 +11:00
Peter Barker
2c93b7809c
AP_Compass: use AP_COMPASS_EXTERNALAHRS_ENABLED more
...
Also rename driver name from serial to externalahrs for consistency
2023-02-22 19:40:13 +11:00
Peter Barker
aac6228f58
AP_Compass: add and use AP_COMPASS_MAG3110_ENABLED
2023-02-22 19:40:13 +11:00
Peter Barker
89a9636c46
AP_Compass: add and use AP_COMPASS_QMC5883L_ENABLED
2023-02-22 19:40:13 +11:00
Peter Barker
b6e2586f50
AP_Compass: add and use AP_COMPASS_MMC3416
2023-02-22 19:40:13 +11:00
Peter Barker
ee6b44113d
AP_Compass: add and use AP_COMPASS_ICM20948_ENABLED
2023-02-22 19:40:13 +11:00
Peter Barker
ad9521c1c4
AP_Compass: add and use AP_COMPASS_AK09916_ENABLED
2023-02-22 19:40:13 +11:00
Peter Barker
1abce258e4
AP_Compass: mark all_external as used even if it is not
2023-02-22 19:40:13 +11:00
Peter Barker
430f19222a
AP_Compass: don't define driver backend type if it is not compiled in
...
Catches places where code isn't disabled properly
2023-02-22 19:40:13 +11:00
Peter Barker
7d244e3451
AP_Compass: add and use AP_COMPASS_LIS3MDL_ENABLED
2023-02-17 23:05:48 +11:00
Peter Barker
fe9461242e
AP_Compass: add and use AP_COMPASS_LSM9DS1_ENABLED
2023-02-15 20:03:55 +11:00
Peter Barker
b26d771c9f
AP_Compass: add and use AP_COMPASS_IST8310_ENABLED
2023-02-14 12:23:55 +11:00
Peter Barker
9035de80ca
AP_Compass: do not detect extra bmm150 instances on SkyViper-v2450
2023-02-09 17:52:52 +11:00
Peter Barker
feb809fbb7
AP_Compass: add and use AP_COMPASS_BMM150_ENABLED
2023-02-09 17:52:52 +11:00
Peter Barker
22feb3c08a
AP_Compass: add and use AP_COMPASS_AK8963_ENABLED
2023-02-07 10:21:06 +11:00
Peter Barker
8155e0ab3b
AP_Compass: avoid using struct Location
...
clang reports this could be a problem when compiling under some EABIs. Remove it from most places as it is just noise, replace with class where we want to avoid including Location.h
2023-02-04 22:51:54 +11:00
Peter Barker
ff99ff34c7
AP_Compass: add and use AP_COMPASS_HMC5843_ENABLED
2023-02-01 18:47:37 +11:00
Peter Barker
669ce03de3
AP_Compass: make DRIVER_IST8308 an invalid symbol if not compiled in
2023-01-31 11:08:28 +11:00
Peter Barker
cbd1264f90
AP_Compass: add and use AP_COMPASS_LSM303D_ENABLED
2023-01-31 11:08:28 +11:00
Andrew Tridgell
07d56d83e7
AP_Compass: allow enabling of only some ExternalAHRS sensors
2023-01-30 09:22:02 +11:00
Peter Barker
e60e646a4e
AP_Compass: create and use AP_COMPASS_IST8308_ENABLED
2023-01-25 19:58:02 +11:00
Andrew Tridgell
f203cf321f
AP_Compass: fixed field orientation for MMC3416
...
the sensor is not FRD, and needs Y axis reversed to follow ArduPilot
FRD convention for magnetometers
2023-01-23 20:10:16 +11:00
Andrew Tridgell
863b4bf928
AP_Compass: fixed zero compass diagonals
...
this fixes a regression from 4.2 to 4.3.
previously we automatically set the diagnoals to 1,1,1 if they were
0,0,0. We don't do that any more. I was helping a user who had copied
an old config with 0,0,0 for diagonals and did not understand two
things:
- the compass did not work in 4.3
- large vehicle mag cal didn't work
2023-01-17 12:05:19 +11:00
Peter Barker
c0d9201740
AP_Compass: rename HAL_INS_ENABLED to AP_INERTIALSENSOR_ENABLED
2023-01-03 10:28:42 +11:00
Peter Barker
3adbaddab0
AP_Compass: regularise compass defines
...
start to make compass backends look like backends from our other libraries
2022-11-15 16:44:38 +11:00
Peter Barker
aef745c693
AP_Compass: fix compilation when removing diagonals state
2022-11-09 21:14:04 +11:00
Peter Barker
35afd258ca
AP_Compass: change namespace of MultiCopter and FixedWing params
...
this stops the libraries knowing anything about AP_Vehicle
2022-11-09 19:04:37 +11:00
Peter Barker
2f29dd9b18
AP_Compass: include cleanups
2022-11-08 09:49:19 +11:00
bugobliterator
61e2e8cd3d
AP_Compass: add option to skip auto detect internal mag
2022-11-01 10:41:59 +11:00
Peter Barker
dc85169cb1
AP_Compass: send report if we are in the BAD_RADIUS state
2022-10-06 10:31:09 +11:00
Peter Barker
05a638a639
AP_Compass: correct is_calibrating check
...
before this we only ever looked at the first backend
2022-10-06 08:21:03 +11:00
Peter Barker
75919171b7
AP_Compass: remove default clause from calibrator status switch
...
bad_radius should almost certainly be treated just like bad orientation
2022-10-06 08:21:03 +11:00
Peter Barker
d6c5a0ab2b
AP_Compass: correct compilation when COMPASS_MAX_INSTANCE>1 and no diagonals
2022-10-06 08:21:03 +11:00
jackhong12
4a4f361a17
all: use CLASS_NO_COPY() macro
2022-10-04 11:23:04 +11:00
Andrew Tridgell
0b9769e658
AP_Compass: removed diagonals and offdiagonals on AP_Periph
2022-09-30 21:25:36 +10:00
Andrew Tridgell
af224dab1e
AP_Compass: fixed AP_Periph compass
...
diagonals are no longer initialised to 1.0, which leaves us with zero
compass after matrix mul
2022-09-30 21:25:36 +10:00
Iampete1
df470f6a34
AP_Compass: params always use set method
2022-08-03 13:43:48 +01:00