mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
ina23X: Support for ina23X power monitors
This commit is contained in:
committed by
Beat Küng
parent
cf5da66e9f
commit
b8d0bb44c4
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user