Skip to content

Commit

Permalink
boards: add iis2mdc mag to ark pi6x
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexKlimaj authored and dagar committed May 1, 2024
1 parent 67b3931 commit 2498ce6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions boards/ark/pi6x/default.px4board
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions boards/ark/pi6x/init/rc.board_sensors
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2498ce6

Please sign in to comment.