Support in older style config

pull/1693/head
Ram 2025-01-30 11:09:41 +05:30
parent f08d18d80c
commit b9c7dc923f
3 changed files with 7 additions and 4 deletions

View File

@ -43,7 +43,10 @@ case "$1" in
else
if [ "$router" -eq 2 ]; then
msposd --channels "$channels" --master "$serial" --baudrate "$baud" \
--out 127.0.0.1:$(($port_tx + 1)) -osd -r "$fps" --ahi "$ahi" > /dev/null &
-osd -r "$fps" --ahi "$ahi" > /dev/null &
elif [ "$router" -eq 3 ]; then
msposd --channels "$channels" --master "$serial" --baudrate "$baud" \
--out 10.5.0.1:$(($port_tx + 1)) -osd -r "$fps" > /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 &

View File

@ -4,7 +4,7 @@ unit=drone
serial=/dev/ttyAMA0
baud=115200
### router: use simple mavfwd (0), classic mavlink-routerd (1) or msposd instead of mavfwd (2)
### router: use simple mavfwd (0), classic mavlink-routerd (1) or msposd instead of mavfwd (2) or msposd on groundstation (3)
router=0
wlan=wlan0

View File

@ -92,10 +92,10 @@ start_telemetry() {
if [ "$router" = "msposd" ]; then
echo "- Starting $router"
msposd --baudrate 115200 --channels 8 -osd --ahi "$ahi" -r "$osd_fps" \
--master "$serial" --out 10.5.0.1:14551 > /dev/null &
--master "$serial" > /dev/null &
elif [ "$router" = "msposd_gs" ]; then
echo "- Starting $router"
msposd --baudrate 115200 --channels 8 --ahi "$ahi" -r "$osd_fps" \
msposd --baudrate 115200 --channels 8 -r "$osd_fps" \
--master "$serial" --out 10.5.0.1:14551 > /dev/null &
elif [ "$router" = "mavfwd" ]; then
echo "- Starting $router"