mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
ROMFS split rc.board into defaults, sensors, and extras
This commit is contained in:
committed by
Kabir Mohammed
parent
d8ab059ff3
commit
fef65bf5c8
@@ -1,39 +0,0 @@
|
||||
#!nsh
|
||||
#
|
||||
# AUAV/mRO x21 specific board init
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
#
|
||||
# UART mapping on x21:
|
||||
#
|
||||
# UART1 /dev/ttyS0 IO debug
|
||||
# USART2 /dev/ttyS1 TELEM1 (flow control)
|
||||
# USART3 /dev/ttyS2 TELEM2 (flow control)
|
||||
# UART4
|
||||
# UART7 CONSOLE
|
||||
# UART8 /dev/ttyS6 SERIAL4/TELEM4
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
#
|
||||
|
||||
|
||||
if [ $AUTOCNF = yes ]
|
||||
then
|
||||
|
||||
|
||||
fi
|
||||
|
||||
|
||||
# External I2C bus
|
||||
hmc5883 -C -T -X start
|
||||
lis3mdl -X start
|
||||
ist8310 -C start
|
||||
|
||||
# Internal SPI bus ICM-20608-G is rotated 90 deg yaw
|
||||
mpu6000 -R 2 -T 20608 start
|
||||
|
||||
# Internal SPI bus ICM-20602-G is rotated 90 deg yaw
|
||||
mpu6000 -R 2 -T 20602 start
|
||||
|
||||
# Internal SPI bus mpu9250 is rotated 90 deg yaw
|
||||
mpu9250 -R 2 start
|
||||
19
boards/auav/x21/init/rc.board_sensors
Normal file
19
boards/auav/x21/init/rc.board_sensors
Normal file
@@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# AUAV/mRO x21 specific board sensors init
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
|
||||
# External I2C bus
|
||||
hmc5883 -C -T -X start
|
||||
lis3mdl -X start
|
||||
ist8310 -C start
|
||||
|
||||
# Internal SPI bus ICM-20608-G is rotated 90 deg yaw
|
||||
mpu6000 -R 2 -T 20608 start
|
||||
|
||||
# Internal SPI bus ICM-20602-G is rotated 90 deg yaw
|
||||
mpu6000 -R 2 -T 20602 start
|
||||
|
||||
# Internal SPI bus mpu9250 is rotated 90 deg yaw
|
||||
mpu9250 -R 2 start
|
||||
10
boards/auav/x21/init/rc.defaults
Normal file
10
boards/auav/x21/init/rc.defaults
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# AUAV/mRO x21 specific board defaults
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
|
||||
if [ $AUTOCNF = yes ]
|
||||
then
|
||||
param set SYS_FMU_TASK 0
|
||||
fi
|
||||
Reference in New Issue
Block a user