ina238: Do not expose raw adc config to user, make specific to ina238

This commit is contained in:
Thomas Debrunner
2021-09-20 10:14:31 +02:00
committed by Beat Küng
parent b8d0bb44c4
commit 43ece74fa0
13 changed files with 445 additions and 506 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ px4_add_board(
pca9685_pwm_out
power_monitor/ina226
power_monitor/ina228
power_monitor/ina23X
power_monitor/ina238
#protocol_splitter
pwm_input
pwm_out_sim
+1 -1
View File
@@ -3,7 +3,7 @@
# board specific defaults
#------------------------------------------------------------------------------
param set-default SENS_EN_INA23X 0
param set-default SENS_EN_INA238 0
param set-default SENS_EN_INA228 0
param set-default SENS_EN_INA226 1
+3 -3
View File
@@ -19,11 +19,11 @@ then
ina228 -X -b 2 -t 2 -k start
fi
if param compare SENS_EN_INA23X 1
if param compare SENS_EN_INA238 1
then
# Start Digital power monitors
ina23X -X -b 1 -t 1 -k start
ina23X -X -b 2 -t 2 -k start
ina238 -X -b 1 -t 1 -k start
ina238 -X -b 2 -t 2 -k start
fi
if ver hwtypecmp V5X90 V5X91 V5X92 V5Xa0 V5Xa1 V5Xa2
+1 -1
View File
@@ -42,7 +42,7 @@ px4_add_board(
pca9685_pwm_out
power_monitor/ina226
power_monitor/ina228
power_monitor/ina23X
power_monitor/ina238
#protocol_splitter
pwm_out_sim
pwm_out
+1 -1
View File
@@ -3,7 +3,7 @@
# board specific defaults
#------------------------------------------------------------------------------
param set-default SENS_EN_INA23X 0
param set-default SENS_EN_INA238 0
param set-default SENS_EN_INA228 0
param set-default SENS_EN_INA226 1
+3 -3
View File
@@ -18,11 +18,11 @@ then
ina228 -X -b 2 -t 2 -k start
fi
if param compare SENS_EN_INA23X 1
if param compare SENS_EN_INA238 1
then
# Start Digital power monitors
ina23X -X -b 1 -t 1 -k start
ina23X -X -b 2 -t 2 -k start
ina238 -X -b 1 -t 1 -k start
ina238 -X -b 2 -t 2 -k start
fi
# Internal SPI BMI088