add ability to run msposd instead of mavfwd

pull/1557/head
cronyx 2024-09-26 15:24:52 +03:00
parent 179f369b6c
commit 60f5329b25
2 changed files with 12 additions and 2 deletions

View File

@ -39,8 +39,13 @@ case "$1" in
if [ "$router" -eq 1 ] || [ "$fw" = "lte" ]; then
mavlink-routerd -c /etc/mavlink.conf > /dev/null 2>&1 &
else
mavfwd --channels "$channels" --master "$serial" --baudrate "$baud" -p 100 -t -a "$aggregate" \
if [ "$router" -eq 2 ]; then
msposd --master "$serial" --baudrate "$baud" --channels "$channels" \
--out 127.0.0.1:14555 -osd -r "$fps" --ahi "$ahi" > /dev/null &
else
mavfwd --channels "$channels" --master "$serial" --baudrate "$baud" -p 100 -t -a "$aggregate" \
--out 127.0.0.1:$port_tx --in 127.0.0.1:$port_rx > /dev/null &
fi
fi
if [ "$fw" = "fpv" ] || [ "$fw" = "venc" ]; then
start_${unit}_telemetry
@ -53,6 +58,7 @@ case "$1" in
killall -q telemetry_tx
killall -q mavlink-routerd
killall -q mavfwd
killall -q msposd
;;
*)

View File

@ -4,7 +4,7 @@ unit=drone
serial=/dev/ttyAMA0
baud=115200
### router: use simple mavfwd (0) or classic mavlink-routerd (1)
### router: use simple mavfwd (0), classic mavlink-routerd (1) or msposd instead of mavfwd
router=0
wlan=wlan0
@ -27,3 +27,7 @@ aggregate=15
### for mavfwd: RC override channels to parse after first 4 and call /usr/sbin/channels.sh $ch $val, default 0
channels=8
### for msposd: OSD over video
fps=20
ahi=0