Files
2026-09-13 13:30:21 +08:00

72 lines
2.0 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# fpv-relay (C++) 示例配置
# HTTP 状态页(可选):浏览器打开 http://<本机>:8080/ ,JSON 在 /status ,指标在 /metrics
status:
enabled: true
address: ":8080"
# RTSP 兼容输出(可选):低延迟主路径仍是每路的 forward(UDP 直推)
rtsp:
enabled: false
address: ":8554"
udp_base: 8000 # >0 时同时支持 UDP 传输;TCP interleaved 始终支持
# 上行链路(可选):电脑→无人机 的 mavlink/遥控,经 wfb_tx 注入无线。
# 地面站把本地 UDP(mavlink) 发到天空端;天空端需有对应的 wfb_rx 接收。
# radio_port / link_id / 信道 / key 需与天空端上行接收配置一致。
uplink:
- enabled: false
iface: wfb0
key: /home/misaki/wfb-ng/gs.key
link_id: 7669206
radio_port: 160 # 上行数据流端口(与天空端 wfb_rx 一致)
channel: 161
bandwidth: 20
mcs_index: 1
fec_k: 2
fec_n: 4
udp_port: 14551 # 本地监听 mavlink 的端口(QGC/MAVProxy 发到这里)
captures:
- name: drone1
type: wfb
iface: wfb0
key: /home/misaki/wfb-ng/gs.key
link_id: 7669206
radio_port: 0
epoch: 0
channel: 161
bandwidth: HT20
region: BO
codec: h265
forward:
- "127.0.0.1:5700"
- "192.168.1.50:5600"
# DVR 录制(可选):把该路 H265 还原成 Annex-B 裸流按时间分片存盘
record:
enabled: false
dir: records
segment_seconds: 300
# 遥测下行(可选):接收天空端 mavlink 流并转发给本机 QGC(14550)
mavlink:
enabled: false
radio_port: 16 # 0x10,天空端 mavlink 下行端口
target: "127.0.0.1:14550"
# 第二块卡(多卡)
# - name: drone2
# type: wfb
# iface: wfb1
# key: /home/misaki/wfb-ng/gs.key
# link_id: 7669206
# channel: 161
# codec: h265
# forward: ["127.0.0.1:5701"]
# UDP 输入(跨平台/测试)
# - name: drone3
# type: udp
# listen: "127.0.0.1:5602"
# codec: h265
# forward: ["192.168.1.51:5602"]