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.
This commit is contained in:
Eric Katzfey
2026-03-20 09:50:39 -07:00
committed by Eric Katzfey
parent 782e9b8b04
commit 17bf9ccb5d
2 changed files with 8 additions and 0 deletions

View File

@@ -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

View File

@@ -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