wfb-ng/scripts/tx_standalone.sh
Vasily Evseenko 97986d1963 Bidirectional telemetry support (python/twisted required)
Allow tx to use multiple interfaces (tx diversity)
Remove mavlink mode from wfb_tx binary (moved to the python side).
Add tgz, rpm and deb binary package generation
2018-12-13 21:42:35 +03:00

33 lines
526 B
Bash
Executable File

#!/bin/bash
WLAN=$1
BAND="5G"
#BAND="2G"
CHANNEL2G="6"
CHANNEL5G="149"
ifconfig $WLAN down
iw dev $WLAN set monitor otherbss
iw reg set BO
ifconfig $WLAN up
case $BAND in
"5G")
echo "Setting $WLAN to channel $CHANNEL5G"
iw dev $WLAN set channel $CHANNEL5G HT40+
;;
"2G")
echo "Setting $WLAN to channel $CHANNEL2G"
iw dev $WLAN set channel $CHANNEL2G HT40+
;;
*)
echo "Select 2G or 5G band"
exit -1;
;;
esac
# Video TX
./wfb_tx -p 1 -u 5600 -K drone.key $WLAN