mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
Add support for ModalAI FC1
This commit is contained in:
26
boards/modalai/fc-v1/init/rc.board_defaults
Normal file
26
boards/modalai/fc-v1/init/rc.board_defaults
Normal file
@@ -0,0 +1,26 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# ModalAI FC-v1 specific board defaults
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
|
||||
if [ $AUTOCNF = yes ]
|
||||
then
|
||||
# Disable safety switch by default
|
||||
param set CBRK_IO_SAFETY 22027
|
||||
|
||||
#
|
||||
# TELEM2 /dev/ttyS4
|
||||
#
|
||||
# In the VOXL-FMU, this port is connect to the VOXL internally
|
||||
# In the FMU, this J1 port can connect to the VOXL J12
|
||||
# By default, we use this UART connection with MAVLink at 921.6kHz
|
||||
#
|
||||
param set MAV_1_CONFIG 102 # TELEM2
|
||||
param set MAV_1_MODE 0 # normal
|
||||
param set SER_TEL2_BAUD 921600
|
||||
fi
|
||||
|
||||
set LOGGER_BUF 64
|
||||
|
||||
safety_button start
|
||||
7
boards/modalai/fc-v1/init/rc.board_mavlink
Normal file
7
boards/modalai/fc-v1/init/rc.board_mavlink
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# ModalAI FC-v1 specific board MAVLink startup script.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
# Start MAVLink on the USB port
|
||||
mavlink start -d /dev/ttyACM0
|
||||
28
boards/modalai/fc-v1/init/rc.board_sensors
Normal file
28
boards/modalai/fc-v1/init/rc.board_sensors
Normal file
@@ -0,0 +1,28 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# ModalAI FC-v1 specific board sensors init
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
# Start Digital power monitors
|
||||
voxlpm -R start
|
||||
|
||||
# Internal SPI bus ICM-20602
|
||||
mpu6000 -R 2 -s -T 20602 start
|
||||
|
||||
# Internal SPI bus ICM-42688
|
||||
# TODO
|
||||
|
||||
# Internal SPI bus BMI088 accel
|
||||
bmi088 -A start
|
||||
|
||||
# Internal SPI bus BMI088 gyro
|
||||
bmi088 -G start
|
||||
|
||||
# Possible external compasses
|
||||
ist8310 -C -b 1 start
|
||||
ist8310 -C -b 2 start
|
||||
hmc5883 -C -T -X start
|
||||
qmc5883 -X start
|
||||
|
||||
# Internal I2C Baro
|
||||
bmp388 -I start
|
||||
Reference in New Issue
Block a user