From 17bf9ccb5d6da738c6f3d0896e95b71b85ccd734 Mon Sep 17 00:00:00 2001 From: Eric Katzfey Date: Fri, 20 Mar 2026 09:50:39 -0700 Subject: [PATCH] feat(voxl2): add ina226 and ina228 driver support for voxl2 Add INA226 and INA228 power monitor drivers to the voxl2 SLPI board config and add startup options in voxl-px4-start to select them via the POWER_MANAGER environment variable. --- boards/modalai/voxl2/slpi.px4board | 2 ++ boards/modalai/voxl2/target/voxl-px4-start | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/boards/modalai/voxl2/slpi.px4board b/boards/modalai/voxl2/slpi.px4board index 234fc1bfa4..dc88af3cde 100644 --- a/boards/modalai/voxl2/slpi.px4board +++ b/boards/modalai/voxl2/slpi.px4board @@ -37,6 +37,8 @@ CONFIG_DRIVERS_MAGNETOMETER_ISENTEK_IST8310=y CONFIG_DRIVERS_MAGNETOMETER_QMC5883L=y CONFIG_DRIVERS_MAGNETOMETER_ST_IIS2MDC=y CONFIG_DRIVERS_POWER_MONITOR_VOXLPM=y +CONFIG_DRIVERS_POWER_MONITOR_INA226=y +CONFIG_DRIVERS_POWER_MONITOR_INA228=y CONFIG_DRIVERS_QSHELL_QURT=y CONFIG_DRIVERS_RC_CRSF_RC=y CONFIG_DRIVERS_VOXL2_IO=y diff --git a/boards/modalai/voxl2/target/voxl-px4-start b/boards/modalai/voxl2/target/voxl-px4-start index 49fa87f8df..ec1eb73342 100755 --- a/boards/modalai/voxl2/target/voxl-px4-start +++ b/boards/modalai/voxl2/target/voxl-px4-start @@ -215,6 +215,12 @@ fi if [ "$POWER_MANAGER" == "VOXLPM" ]; then # APM power monitor qshell voxlpm start -X -b 2 +elif [ "$POWER_MANAGER" == "INA226" ]; then + /bin/echo "Starting INA226 power monitor" + qshell ina226 start -X -b 2 +elif [ "$POWER_MANAGER" == "INA228" ]; then + /bin/echo "Starting INA228 power monitor" + qshell ina228 start -X -b 2 fi if [ "$AIRSPEED_SENSOR" == "MS4525DO" ]; then