From 2498ce6a5cbdc63a7bf5d30025fae994c62b9adc Mon Sep 17 00:00:00 2001 From: alexklimaj Date: Tue, 30 Apr 2024 18:47:28 -0600 Subject: [PATCH] boards: add iis2mdc mag to ark pi6x --- boards/ark/pi6x/default.px4board | 1 + boards/ark/pi6x/init/rc.board_sensors | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/boards/ark/pi6x/default.px4board b/boards/ark/pi6x/default.px4board index 98f6300f579c..45f992d69eed 100644 --- a/boards/ark/pi6x/default.px4board +++ b/boards/ark/pi6x/default.px4board @@ -15,6 +15,7 @@ CONFIG_DRIVERS_HEATER=y CONFIG_DRIVERS_IMU_INVENSENSE_ICM42688P=y CONFIG_COMMON_LIGHT=y CONFIG_DRIVERS_MAGNETOMETER_MEMSIC_MMC5983MA=y +CONFIG_DRIVERS_MAGNETOMETER_ST_IIS2MDC=y CONFIG_DRIVERS_OPTICAL_FLOW_PAW3902=y CONFIG_DRIVERS_POWER_MONITOR_INA226=y CONFIG_DRIVERS_PWM_OUT=y diff --git a/boards/ark/pi6x/init/rc.board_sensors b/boards/ark/pi6x/init/rc.board_sensors index 647e685c7f43..cc97b1d601fd 100644 --- a/boards/ark/pi6x/init/rc.board_sensors +++ b/boards/ark/pi6x/init/rc.board_sensors @@ -21,8 +21,10 @@ then fi # Internal magnetometer on I2C -# TODO: Write a driver for the MMC5983MA -mmc5983ma -I -b 4 start +if ! iis2mdc -R 4 -I -b 4 start +then + mmc5983ma -I -b 4 start +fi # Internal Baro on I2C bmp388 -I -b 4 start