From 38e93c1c36120148595d9660a2804dc7c39fc647 Mon Sep 17 00:00:00 2001 From: David O'Connor Date: Wed, 22 May 2024 11:00:24 -0400 Subject: [PATCH] AP_HAL_ChibiOS: Added mag and dataflash logging support to AnyLeaf H7 --- libraries/AP_HAL_ChibiOS/hwdef/AnyleafH7/hwdef.dat | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/AnyleafH7/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/AnyleafH7/hwdef.dat index ae5f1d61295be..14a56e55bc1ba 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/AnyleafH7/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/AnyleafH7/hwdef.dat @@ -111,6 +111,14 @@ define HAL_DEFAULT_INS_FAST_SAMPLE 1 # DPS310 integrated on I2C2 bus, multiple possible choices for external barometer BARO DPS310 I2C:0:0x77 +# no built-in compass, but probe the i2c bus for all possible +# external compass types +define ALLOW_ARM_NO_COMPASS +define HAL_PROBE_EXTERNAL_I2C_COMPASSES +define HAL_I2C_INTERNAL_MASK 0 +define HAL_COMPASS_AUTO_ROT_DEFAULT 2 + # setup for OSD define OSD_ENABLED 1 define HAL_OSD_TYPE_DEFAULT 5 # MSP Displayport +define HAL_LOGGING_DATAFLASH_ENABLED 1 \ No newline at end of file