[no ci] Package: minor wifibroadcast-ng update (#1637)

pull/1638/head
viktorxda 2024-12-11 12:04:49 +01:00 committed by GitHub
parent e6dda80dc7
commit b8e4e975df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 32 additions and 15 deletions

View File

@ -6,6 +6,14 @@ finish() {
reboot reboot
} }
goke() {
cli -s .isp.slowShutter disabled
cli -s .video0.codec h265
cli -s .video0.size 1920x1080
cli -s .video0.fps 30
cli -s .video0.rcMode cbr
}
sigmastar() { sigmastar() {
cli -s .isp.sensorConfig /etc/sensors/imx415_fpv.bin cli -s .isp.sensorConfig /etc/sensors/imx415_fpv.bin
cli -s .isp.exposure 5 cli -s .isp.exposure 5
@ -13,14 +21,24 @@ sigmastar() {
cli -s .video0.size 1920x1080 cli -s .video0.size 1920x1080
cli -s .video0.fps 90 cli -s .video0.fps 90
cli -s .video0.rcMode cbr cli -s .video0.rcMode cbr
}
common() {
cli -s .jpeg.enabled false cli -s .jpeg.enabled false
cli -s .outgoing.enabled true cli -s .outgoing.enabled true
cli -s .outgoing.server udp://0.0.0.0:5600 cli -s .outgoing.server udp://0.0.0.0:5600
} }
case "$1" in case "$1" in
gk7205v300)
goke
common
finish
;;
ssc33x) ssc33x)
sigmastar sigmastar
common
finish finish
;; ;;

View File

@ -3,7 +3,6 @@ wlan=wlan0
region=00 region=00
channel=161 channel=161
txpower=1 txpower=1
driver_txpower_override=1
bandwidth=20 bandwidth=20
stbc=0 stbc=0
ldpc=0 ldpc=0
@ -15,10 +14,9 @@ fec_k=8
fec_n=12 fec_n=12
# Telemetry # Telemetry
router=2 router=msposd
serial=/dev/ttyS2 serial=/dev/ttyS2
baud=115200 baud=115200
channels=8 channels=8
fps=20
port_rx=14551 port_rx=14551
port_tx=14555 port_tx=14555

View File

@ -1,9 +1,10 @@
#!/bin/sh #!/bin/sh
wfb_soc=$(ipcinfo -c) wfb_soc=$(ipcinfo -c)
wfb_key=/etc/drone.key wfb_key=/etc/drone.key
wfb_cfg=/etc/wfb.conf
if [ -e /etc/wfb.conf ]; then if [ -e "$wfb_cfg" ]; then
. /etc/wfb.conf . "$wfb_cfg"
else else
echo "Configuration file not found" echo "Configuration file not found"
exit 1 exit 1
@ -14,7 +15,7 @@ load_modules() {
case "$card" in case "$card" in
"0bda:8812" | "0bda:881a" | "0b05:17d2" | "2357:0101" | "2604:0012") "0bda:8812" | "0bda:881a" | "0b05:17d2" | "2357:0101" | "2604:0012")
driver="88XXau" driver="88XXau"
modprobe 88XXau rtw_tx_pwr_idx_override="$driver_txpower_override" modprobe 88XXau rtw_tx_pwr_idx_override="$txpower"
;; ;;
"0bda:a81a") "0bda:a81a")
@ -22,7 +23,7 @@ load_modules() {
modprobe 8812eu rtw_regd_src=1 rtw_tx_pwr_by_rate=0 rtw_tx_pwr_lmt_enable=0 modprobe 8812eu rtw_regd_src=1 rtw_tx_pwr_by_rate=0 rtw_tx_pwr_lmt_enable=0
;; ;;
"0bda:f72b") "0bda:f72b" | "0bda:b733")
driver="8733bu" driver="8733bu"
modprobe 8733bu rtw_regd_src=1 rtw_tx_pwr_by_rate=0 rtw_tx_pwr_lmt_enable=0 modprobe 8733bu rtw_regd_src=1 rtw_tx_pwr_by_rate=0 rtw_tx_pwr_lmt_enable=0
;; ;;
@ -42,7 +43,7 @@ load_interface() {
iwconfig "$wlan" mode monitor iwconfig "$wlan" mode monitor
if [ "$driver" = "8812eu" ] || [ "$driver" = "8733bu" ]; then if [ "$driver" = "8812eu" ] || [ "$driver" = "8733bu" ]; then
iw dev "$wlan" set txpower fixed $((driver_txpower_override * 50)) iw dev "$wlan" set txpower fixed $((txpower * 50))
fi fi
iw reg set "$region" iw reg set "$region"
@ -70,14 +71,14 @@ start_telemetry() {
devmem 0x1F207890 16 0x8 devmem 0x1F207890 16 0x8
fi fi
if [ "$router" -eq 2 ]; then if [ "$router" = "msposd" ]; then
echo "Starting msposd" echo "Starting $router"
msposd --master "$serial" --baudrate "$baud" --channels "$channels" \ msposd --master "$serial" --baudrate "$baud" --channels "$channels" \
-osd -r "$fps" --ahi 0 --out 10.5.0.1:"$port_tx" > /dev/null & -osd -r 20 --ahi 0 --out 10.5.0.1:"$port_tx" > /dev/null &
else elif [ "$router" = "mavfwd" ]; then
echo "Starting mavfwd" echo "Starting $router"
mavfwd --master "$serial" --baudrate "$baud" --channels "$channels" -p 100 -t \ mavfwd --master "$serial" --baudrate "$baud" --channels "$channels" -p 100 \
-a 15 --in 0.0.0.0:"$port_rx" --out 10.5.0.1:"$port_tx" > /dev/null & -t -a 15 --in 0.0.0.0:"$port_rx" --out 10.5.0.1:"$port_tx" > /dev/null &
fi fi
} }