ina23X: Support for ina23X power monitors

This commit is contained in:
Thomas Debrunner
2021-09-09 10:22:20 +02:00
committed by Beat Küng
parent cf5da66e9f
commit b8d0bb44c4
12 changed files with 986 additions and 1 deletions
+1
View File
@@ -41,6 +41,7 @@ px4_add_board(
pca9685_pwm_out
power_monitor/ina226
power_monitor/ina228
power_monitor/ina23X
#protocol_splitter
pwm_input
pwm_out_sim
@@ -3,6 +3,7 @@
# board specific defaults
#------------------------------------------------------------------------------
param set-default SENS_EN_INA23X 0
param set-default SENS_EN_INA228 0
param set-default SENS_EN_INA226 1
+7
View File
@@ -19,6 +19,13 @@ then
ina228 -X -b 2 -t 2 -k start
fi
if param compare SENS_EN_INA23X 1
then
# Start Digital power monitors
ina23X -X -b 1 -t 1 -k start
ina23X -X -b 2 -t 2 -k start
fi
if ver hwtypecmp V5X90 V5X91 V5X92 V5Xa0 V5Xa1 V5Xa2
then
#SKYNODE base fmu board orientation
+1
View File
@@ -42,6 +42,7 @@ px4_add_board(
pca9685_pwm_out
power_monitor/ina226
power_monitor/ina228
power_monitor/ina23X
#protocol_splitter
pwm_out_sim
pwm_out
+2 -1
View File
@@ -3,7 +3,8 @@
# board specific defaults
#------------------------------------------------------------------------------
param set-default SENS_EN_INA23X 0
param set-default SENS_EN_INA228 0
param set-default SENS_EN_INA226 1
safety_button start
safety_button start
+7
View File
@@ -18,6 +18,13 @@ then
ina228 -X -b 2 -t 2 -k start
fi
if param compare SENS_EN_INA23X 1
then
# Start Digital power monitors
ina23X -X -b 1 -t 1 -k start
ina23X -X -b 2 -t 2 -k start
fi
# Internal SPI BMI088
bmi088 -A -R 4 -s start
bmi088 -G -R 4 -s start