modalai-fc-v1 - update default MAVLink configuration

This commit is contained in:
Travis Bottalico
2020-08-18 20:45:20 -04:00
committed by Daniel Agar
parent f4e147964b
commit e325ca25bb
+11 -38
View File
@@ -36,10 +36,10 @@ then
echo "Configuring Flight Core - V106" echo "Configuring Flight Core - V106"
# #
# In Flight Core, J1 and J4 can be setup to be used as serial ports for TELEM2 # In Flight Core, J1 can be setup to be used as a serial port for TELEM2
# and TELEM3 respectively, and connected to VOXL via cables. We'll configure # and connected to VOXL via cables. We'll configure this out of the box.
# this out of the box. The user can later change this if they want, as these # The user can later change this if they want, as these are configurable
# are configurable and not necessarily required to be used with VOXL. # and not necessarily required to be used with VOXL.
# #
if [ $AUTOCNF = no ] if [ $AUTOCNF = no ]
then then
@@ -47,16 +47,9 @@ then
then then
echo "V106 - Defualt configuration TELEM2 on /dev/ttyS4 at 921600 in Normal Mode" echo "V106 - Defualt configuration TELEM2 on /dev/ttyS4 at 921600 in Normal Mode"
param set MAV_1_CONFIG 102 # TELEM2 param set MAV_1_CONFIG 102 # TELEM2
param set MAV_1_MODE 0 # normal param set MAV_1_MODE 2 # Onboard
param set SER_TEL2_BAUD 921600 # VIO data param set SER_TEL2_BAUD 921600 # VIO data
fi fi
if param compare MAV_2_CONFIG 0
then
echo "V106 - Defualt configuration TELEM3 on /dev/ttyS1 at 57600 in Normal Mode"
param set MAV_2_CONFIG 103 # TELEM3
param set MAV_2_MODE 0 # normal
param set SER_TEL3_BAUD 57600 # standard data
fi
fi fi
# User is setting defaults, so let's do it! # User is setting defaults, so let's do it!
@@ -64,13 +57,8 @@ then
then then
echo "V106 - Auto Configuring TELEM2 on /dev/ttyS4 at 921600 in Normal Mode" echo "V106 - Auto Configuring TELEM2 on /dev/ttyS4 at 921600 in Normal Mode"
param set MAV_1_CONFIG 102 # TELEM2 param set MAV_1_CONFIG 102 # TELEM2
param set MAV_1_MODE 0 # normal param set MAV_1_MODE 2 # Onboard
param set SER_TEL2_BAUD 921600 # VIO data param set SER_TEL2_BAUD 921600 # VIO data
echo "V106 - Auto Configuring TELEM3 on /dev/ttyS1 at 57600 in Normal Mode"
param set MAV_2_CONFIG 103 # TELEM3
param set MAV_2_MODE 0 # normal
param set SER_TEL3_BAUD 57600 # standard data
fi fi
fi fi
@@ -83,9 +71,9 @@ then
# #
# TELEM2 port is physically routed in the PCB, thus not configurable. # TELEM2 port is physically routed in the PCB, thus not configurable.
# The following will detect a fresh install, or if the user has changed the setting # The following will detect a fresh install, or if the user has changed the setting and
# and revert to the VOXL-Flight defaults. This does allow the user to change the mode # revert to the VOXL-Flight defaults. This does allow the user to change the mode and
# and baud rates if they choose to do so, although VOXL is expecting what is set below # baud rates and mode if they choose to do so, although VOXL is expecting what is set below
# #
if [ $AUTOCNF = no ] if [ $AUTOCNF = no ]
then then
@@ -93,19 +81,9 @@ then
then then
echo "V110 - Defualt configuration TELEM2 on /dev/ttyS4 at 921600 in Normal Mode" echo "V110 - Defualt configuration TELEM2 on /dev/ttyS4 at 921600 in Normal Mode"
param set MAV_1_CONFIG 102 # TELEM2 param set MAV_1_CONFIG 102 # TELEM2
param set MAV_1_MODE 0 # normal param set MAV_1_MODE 2 # Onboard
param set SER_TEL2_BAUD 921600 param set SER_TEL2_BAUD 921600
fi fi
#
# J1002 is setup as a spare serial port, if not setup by the user let's default it to TELEM3
#
if param compare MAV_2_CONFIG 0
then
echo "V110 - Defualt configuration TELEM3 on /dev/ttyS1 at 57600 in Normal Mode"
param set MAV_2_CONFIG 103 # TELEM3
param set MAV_2_MODE 0 # normal
param set SER_TEL3_BAUD 57600 # standard data
fi
fi fi
# User is setting defaults, so let's do it! # User is setting defaults, so let's do it!
@@ -113,13 +91,8 @@ then
then then
echo "V110 - Auto Configuring TELEM2 on /dev/ttyS4 at 921600 in Normal Mode" echo "V110 - Auto Configuring TELEM2 on /dev/ttyS4 at 921600 in Normal Mode"
param set MAV_1_CONFIG 102 # TELEM2 param set MAV_1_CONFIG 102 # TELEM2
param set MAV_1_MODE 0 # normal param set MAV_1_MODE 2 # Onboard
param set SER_TEL2_BAUD 921600 param set SER_TEL2_BAUD 921600
echo "V110 - Auto Configuring TELEM3 on /dev/ttyS1 at 57600 in Normal Mode"
param set MAV_2_CONFIG 103 # TELEM3
param set MAV_2_MODE 0 # normal
param set SER_TEL3_BAUD 57600
fi fi
fi fi