Ability to switch between GS and Air MSPOSD

pull/1693/head
Ram 2025-01-29 19:47:56 +05:30
parent 8f4d3e00ba
commit 302cd47b44
3 changed files with 8 additions and 1 deletions
general/package
wifibroadcast-ng/files

View File

@ -44,6 +44,9 @@ case "$1" in
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 &
elif [ "$router" -eq 3 ]; then
msposd --channels "$channels" --master "$serial" --baudrate "$baud" \
--out 10.5.0.1:$(($port_tx + 1)) -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 &

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 ground station (3)
router=0
wlan=wlan0

View File

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