mirror of https://github.com/OpenIPC/firmware.git
[no ci] Update wifibroadcast-ng (#1717)
parent
a0829d8920
commit
cea9f6f2d3
|
@ -90,7 +90,6 @@ sigmastar() {
|
||||||
sed -i "s|serial=/dev/ttyAMA0|serial=/dev/ttyS2|g" /etc/telemetry.conf
|
sed -i "s|serial=/dev/ttyAMA0|serial=/dev/ttyS2|g" /etc/telemetry.conf
|
||||||
sed -i "s|Device = /dev/ttyAMA0|Device = /dev/ttyS2|g" /etc/mavlink.conf
|
sed -i "s|Device = /dev/ttyAMA0|Device = /dev/ttyS2|g" /etc/mavlink.conf
|
||||||
|
|
||||||
cli -s .isp.sensorConfig /etc/sensors/imx415_fpv.bin
|
|
||||||
cli -s .isp.exposure 5
|
cli -s .isp.exposure 5
|
||||||
cli -s .video0.codec h265
|
cli -s .video0.codec h265
|
||||||
cli -s .video0.size 1920x1080
|
cli -s .video0.size 1920x1080
|
||||||
|
|
|
@ -3,7 +3,7 @@ wireless:
|
||||||
channel: 161
|
channel: 161
|
||||||
mode: HT20
|
mode: HT20
|
||||||
broadcast:
|
broadcast:
|
||||||
wfb_index: 1
|
wfb_index: 2
|
||||||
tun_index: 1
|
tun_index: 1
|
||||||
fec_k: 8
|
fec_k: 8
|
||||||
fec_n: 12
|
fec_n: 12
|
||||||
|
|
|
@ -63,7 +63,7 @@ load_interface() {
|
||||||
|
|
||||||
start_broadcast() {
|
start_broadcast() {
|
||||||
echo "- Starting wfb_tx"
|
echo "- Starting wfb_tx"
|
||||||
wfb_tx -K "$wfb_key" -M "$wfb_index" -B "$bandwidth" -C 8000 \
|
wfb_tx -K "$wfb_key" -M "$wfb_index" -B "$bandwidth" -C 8000 -G short \
|
||||||
-k "$fec_k" -n "$fec_n" -i "$link_id" "$wfb_dev" &> /dev/null &
|
-k "$fec_k" -n "$fec_n" -i "$link_id" "$wfb_dev" &> /dev/null &
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -92,12 +92,16 @@ start_telemetry() {
|
||||||
|
|
||||||
video_settings() {
|
video_settings() {
|
||||||
[ "$(ipcinfo -s)" = "imx415" ] && cli -s .isp.sensorConfig /etc/sensors/imx415_fpv.bin
|
[ "$(ipcinfo -s)" = "imx415" ] && cli -s .isp.sensorConfig /etc/sensors/imx415_fpv.bin
|
||||||
|
|
||||||
cli -s .isp.exposure 5
|
cli -s .isp.exposure 5
|
||||||
cli -s .video0.fps 60
|
cli -s .video0.fps 60
|
||||||
|
cli -s .video0.bitrate 10240
|
||||||
cli -s .video0.codec h265
|
cli -s .video0.codec h265
|
||||||
cli -s .video0.rcMode cbr
|
cli -s .video0.rcMode cbr
|
||||||
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
|
||||||
|
cli -s .fpv.enabled true
|
||||||
|
cli -s .fpv.noiseLevel 1
|
||||||
}
|
}
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
|
|
|
@ -22,6 +22,9 @@ define WIFIBROADCAST_NG_INSTALL_TARGET_CMDS
|
||||||
$(INSTALL) -m 755 -d $(TARGET_DIR)/etc/init.d
|
$(INSTALL) -m 755 -d $(TARGET_DIR)/etc/init.d
|
||||||
$(INSTALL) -m 755 -t $(TARGET_DIR)/etc/init.d $(WIFIBROADCAST_NG_PKGDIR)/files/S98wifibroadcast
|
$(INSTALL) -m 755 -t $(TARGET_DIR)/etc/init.d $(WIFIBROADCAST_NG_PKGDIR)/files/S98wifibroadcast
|
||||||
|
|
||||||
|
$(INSTALL) -m 755 -d $(TARGET_DIR)/etc/sensors
|
||||||
|
$(INSTALL) -m 644 -t $(TARGET_DIR)/etc/sensors $(WIFIBROADCAST_NG_PKGDIR)/sensor/*
|
||||||
|
|
||||||
$(INSTALL) -m 755 -d $(TARGET_DIR)/usr/bin
|
$(INSTALL) -m 755 -d $(TARGET_DIR)/usr/bin
|
||||||
$(INSTALL) -m 755 -t $(TARGET_DIR)/usr/bin $(@D)/wfb_rx
|
$(INSTALL) -m 755 -t $(TARGET_DIR)/usr/bin $(@D)/wfb_rx
|
||||||
$(INSTALL) -m 755 -t $(TARGET_DIR)/usr/bin $(@D)/wfb_tx
|
$(INSTALL) -m 755 -t $(TARGET_DIR)/usr/bin $(@D)/wfb_tx
|
||||||
|
|
Loading…
Reference in New Issue