From 39abb13692e85fb2e25838ecb6805106adc181c1 Mon Sep 17 00:00:00 2001
From: xiao <1406012633@qq.com.com>
Date: Mon, 4 Jul 2022 11:37:31 +0800
Subject: [PATCH] HAL_ChibiOS: hwdef: add new hardware MFE-PixSurveyA1

---
 .../hwdef/MFE-PixSurveyA1/hwdef-bl.dat        |  2 ++
 .../hwdef/MFE-PixSurveyA1/hwdef.dat           | 21 +++++++++++++++++++
 2 files changed, 23 insertions(+)
 create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/MFE-PixSurveyA1/hwdef-bl.dat
 create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/MFE-PixSurveyA1/hwdef.dat

diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MFE-PixSurveyA1/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/MFE-PixSurveyA1/hwdef-bl.dat
new file mode 100644
index 0000000000..107aad626f
--- /dev/null
+++ b/libraries/AP_HAL_ChibiOS/hwdef/MFE-PixSurveyA1/hwdef-bl.dat
@@ -0,0 +1,2 @@
+include ../fmuv3/hwdef-bl.dat
+APJ_BOARD_ID 1076
diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MFE-PixSurveyA1/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/MFE-PixSurveyA1/hwdef.dat
new file mode 100644
index 0000000000..d096e54a45
--- /dev/null
+++ b/libraries/AP_HAL_ChibiOS/hwdef/MFE-PixSurveyA1/hwdef.dat
@@ -0,0 +1,21 @@
+# hw definition file for processing by chibios_hwdef.py
+# for MFE-V3, based on fmuv3
+include ../fmuv3/hwdef.dat
+
+APJ_BOARD_ID 1076
+
+#Use MPU9250 or ICM20948 on the new hardware
+COMPASS AK8963:probe_mpu9250 0 ROTATION_PITCH_180
+COMPASS AK09916:probe_ICM20948 0 ROTATION_ROLL_180_YAW_90
+
+COMPASS LSM303D SPI:lsm9ds0_ext_am ROTATION_YAW_270
+define HAL_PROBE_EXTERNAL_I2C_COMPASSES
+
+# two baros
+BARO MS56XX SPI:ms5611_ext
+BARO MS56XX SPI:ms5611
+
+define HAL_IMU_TEMP_DEFAULT 45
+define HAL_IMUHEAT_P_DEFAULT 50
+define HAL_IMUHEAT_I_DEFAULT 0.07
+define HAL_IMU_TEMP_MARGIN_LOW_DEFAULT 5