Make MSPOSD AHI configurable

pull/1693/head
Ram 2025-01-29 22:12:19 +05:30
parent 302cd47b44
commit f08d18d80c
4 changed files with 5 additions and 7 deletions
general/package
wifibroadcast-ng/files

View File

@ -44,9 +44,6 @@ 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) or msposd on ground station (3)
### router: use simple mavfwd (0), classic mavlink-routerd (1) or msposd instead of mavfwd (2)
router=0
wlan=wlan0

View File

@ -13,3 +13,4 @@ telemetry:
router: msposd
serial: /dev/ttyS2
osd_fps: 20
ahi: 0

View File

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