mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
boards: start adc in rc.board_sensors
This commit is contained in:
@@ -14,9 +14,6 @@ then
|
|||||||
fmu i2c 1 100000
|
fmu i2c 1 100000
|
||||||
fmu i2c 2 100000
|
fmu i2c 2 100000
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
adc start
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|||||||
@@ -340,9 +340,9 @@ else
|
|||||||
fi
|
fi
|
||||||
unset BOARD_RC_SENSORS
|
unset BOARD_RC_SENSORS
|
||||||
|
|
||||||
battery_status start
|
|
||||||
|
|
||||||
sh /etc/init.d/rc.sensors
|
sh /etc/init.d/rc.sensors
|
||||||
|
|
||||||
|
battery_status start
|
||||||
commander start
|
commander start
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,8 @@
|
|||||||
# Airmind Mindpx-v2 specific board sensors init
|
# Airmind Mindpx-v2 specific board sensors init
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
adc start
|
||||||
|
|
||||||
# External I2C bus
|
# External I2C bus
|
||||||
hmc5883 -C -T -X start
|
hmc5883 -C -T -X start
|
||||||
qmc5883 -X start
|
qmc5883 -X start
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
# AUAV/mRO x21 specific board sensors init
|
# AUAV/mRO x21 specific board sensors init
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
adc start
|
||||||
|
|
||||||
# External I2C bus
|
# External I2C bus
|
||||||
hmc5883 -C -T -X start
|
hmc5883 -C -T -X start
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
# av_x1-v1 specific board sensors init
|
# av_x1-v1 specific board sensors init
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
adc start
|
||||||
|
|
||||||
adis16477 -R 8 start
|
adis16477 -R 8 start
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
# Bitcraze Crazyflie specific board sensors init
|
# Bitcraze Crazyflie specific board sensors init
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
adc start
|
||||||
|
|
||||||
# Onboard I2C
|
# Onboard I2C
|
||||||
mpu9250 -R 12 start
|
mpu9250 -R 12 start
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
# KakuteF7 specific board sensors init
|
# KakuteF7 specific board sensors init
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
adc start
|
||||||
|
|
||||||
# The default IMU is an ICM20689, but there might also be an MPU6000
|
# The default IMU is an ICM20689, but there might also be an MPU6000
|
||||||
if ! mpu6000 -R 12 -s start
|
if ! mpu6000 -R 12 -s start
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
# intel aero specific board sensors init
|
# intel aero specific board sensors init
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
aerofc_adc start
|
||||||
|
|
||||||
ms5611 -T 0 start
|
ms5611 -T 0 start
|
||||||
mpu9250 -s -R 14 start
|
mpu9250 -s -R 14 start
|
||||||
@@ -11,7 +12,6 @@ mpu9250 -s -R 14 start
|
|||||||
hmc5883 -X start
|
hmc5883 -X start
|
||||||
|
|
||||||
ist8310 -C -b 1 -R 4 start
|
ist8310 -C -b 1 -R 4 start
|
||||||
aerofc_adc start
|
|
||||||
|
|
||||||
ll40ls start i2c -a
|
ll40ls start i2c -a
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,8 @@
|
|||||||
# ModalAI FC-v1 specific board sensors init
|
# ModalAI FC-v1 specific board sensors init
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
adc start
|
||||||
|
|
||||||
# Start Digital power monitors
|
# Start Digital power monitors
|
||||||
voxlpm -R start
|
voxlpm -R start
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,8 @@
|
|||||||
# mRo Control Zero specific board sensors init
|
# mRo Control Zero specific board sensors init
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
adc start
|
||||||
|
|
||||||
# Internal ICM-20602
|
# Internal ICM-20602
|
||||||
mpu6000 -R 10 -s -T 20602 start
|
mpu6000 -R 10 -s -T 20602 start
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
# NXP fmuk66-v3 specific board defaults
|
# NXP fmuk66-v3 specific board defaults
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
adc start
|
||||||
|
|
||||||
# Possible external compasses
|
# Possible external compasses
|
||||||
hmc5883 -C -X start
|
hmc5883 -C -X start
|
||||||
|
|||||||
@@ -3,6 +3,8 @@
|
|||||||
# Omnibus F4SD specific board sensors init
|
# Omnibus F4SD specific board sensors init
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
adc start
|
||||||
|
|
||||||
if ! mpu6000 -R 12 -s start
|
if ! mpu6000 -R 12 -s start
|
||||||
then
|
then
|
||||||
# some boards such as the Hobbywing XRotor F4 G2 use the ICM-20602
|
# some boards such as the Hobbywing XRotor F4 G2 use the ICM-20602
|
||||||
|
|||||||
@@ -3,6 +3,8 @@
|
|||||||
# PX4 FMUv2 specific board sensors init
|
# PX4 FMUv2 specific board sensors init
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
adc start
|
||||||
|
|
||||||
# External I2C bus
|
# External I2C bus
|
||||||
hmc5883 -C -T -X start
|
hmc5883 -C -T -X start
|
||||||
lis3mdl -X start
|
lis3mdl -X start
|
||||||
|
|||||||
@@ -3,6 +3,8 @@
|
|||||||
# PX4 FMUv3 specific board sensors init
|
# PX4 FMUv3 specific board sensors init
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
adc start
|
||||||
|
|
||||||
# External I2C bus
|
# External I2C bus
|
||||||
hmc5883 -C -T -X start
|
hmc5883 -C -T -X start
|
||||||
lis3mdl -X start
|
lis3mdl -X start
|
||||||
|
|||||||
@@ -3,6 +3,8 @@
|
|||||||
# PX4 FMUv4 specific board sensors init
|
# PX4 FMUv4 specific board sensors init
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
adc start
|
||||||
|
|
||||||
# We know there are sketchy boards out there
|
# We know there are sketchy boards out there
|
||||||
# as chinese companies produce Pixracers without
|
# as chinese companies produce Pixracers without
|
||||||
# fully understanding the critical parts of the
|
# fully understanding the critical parts of the
|
||||||
|
|||||||
@@ -3,6 +3,8 @@
|
|||||||
# PX4 FMUv4pro specific board sensors init
|
# PX4 FMUv4pro specific board sensors init
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
adc start
|
||||||
|
|
||||||
# Internal SPI bus ICM-20608-G
|
# Internal SPI bus ICM-20608-G
|
||||||
mpu6000 -R 2 -T 20608 start
|
mpu6000 -R 2 -T 20608 start
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,8 @@
|
|||||||
# PX4 FMUv5 specific board sensors init
|
# PX4 FMUv5 specific board sensors init
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
adc start
|
||||||
|
|
||||||
# Internal SPI bus ICM-20602
|
# Internal SPI bus ICM-20602
|
||||||
mpu6000 -R 8 -s -T 20602 start
|
mpu6000 -R 8 -s -T 20602 start
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,8 @@
|
|||||||
# PX4 FMUv5X specific board sensors init
|
# PX4 FMUv5X specific board sensors init
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
adc start
|
||||||
|
|
||||||
# Start Digital power monitors
|
# Start Digital power monitors
|
||||||
ina226 -b 1 start
|
ina226 -b 1 start
|
||||||
ina226 -b 2 start
|
ina226 -b 2 start
|
||||||
|
|||||||
@@ -3,6 +3,8 @@
|
|||||||
# UVify UVF4 specific board sensors init
|
# UVify UVF4 specific board sensors init
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
adc start
|
||||||
|
|
||||||
# Internal SPI
|
# Internal SPI
|
||||||
ms5611 -T 0 -s start
|
ms5611 -T 0 -s start
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user