Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
libc0607 committed Sep 30, 2024
2 parents 9bcbdf2 + fb89615 commit 79d8407
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 10 deletions.
8 changes: 8 additions & 0 deletions general/overlay/etc/wireless/usb
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,14 @@ if [ "$1" = "mt7601u-gk7205v200-camhi" ]; then
exit 0
fi

# GK7205V300 CamHi
if [ "$1" = "mt7601u-gk7205v300-camhi" ]; then
devmem 0x100C0080 32 0x530
set_gpio 7 0
modprobe mt7601u
exit 0
fi

# GK7205V200 CamHi
if [ "$1" = "rtl8733bu-gk7205v200-camhi" ]; then
set_gpio 9 0
Expand Down
8 changes: 7 additions & 1 deletion general/package/datalink/files/telemetry
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,13 @@ case "$1" in
if [ "$router" -eq 1 ] || [ "$fw" = "lte" ]; then
mavlink-routerd -c /etc/mavlink.conf > /dev/null 2>&1 &
else
mavfwd --channels "$channels" --master "$serial" --baudrate "$baud" -p 100 -t -a "$aggregate" \
if [ "$router" -eq 2 ]; then
msposd --master "$serial" --baudrate "$baud" --channels "$channels" \
--out 127.0.0.1:14555 -osd -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 &
fi
fi
if [ "$fw" = "fpv" ] || [ "$fw" = "venc" ]; then
start_${unit}_telemetry
Expand All @@ -53,6 +58,7 @@ case "$1" in
killall -q telemetry_tx
killall -q mavlink-routerd
killall -q mavfwd
killall -q msposd
;;

*)
Expand Down
6 changes: 5 additions & 1 deletion general/package/datalink/files/telemetry_drone.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ unit=drone
serial=/dev/ttyAMA0
baud=115200

### router: use simple mavfwd (0) or classic mavlink-routerd (1)
### router: use simple mavfwd (0), classic mavlink-routerd (1) or msposd instead of mavfwd (2)
router=0

wlan=wlan0
Expand All @@ -27,3 +27,7 @@ aggregate=15

### for mavfwd: RC override channels to parse after first 4 and call /usr/sbin/channels.sh $ch $val, default 0
channels=8

### for msposd: OSD over video
fps=20
ahi=0
15 changes: 7 additions & 8 deletions general/package/mavfwd/mavfwd.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,24 @@
#
################################################################################

MAVFWD_SITE_METHOD = git
MAVFWD_SITE = https://github.com/openipc/mavfwd
MAVFWD_VERSION = 70da7adbdbe36d371ca849c4a3bc3cadb54498d3
MAVFWD_SITE = $(call github,openipc,mavfwd,$(MAVFWD_VERSION))
MAVFWD_VERSION = HEAD

MAVFWD_LICENSE = MIT
MAVFWD_LICENSE_FILES = LICENSE

MAVFWD_DEPENDENCIES = libevent-openipc

define MAVFWD_BUILD_CMDS
(cd $(@D); $(TARGET_CC) -levent_core -s mavfwd.c -o mavfwd)
$(TARGET_CC) $(@D)/mavfwd.c -o $(@D)/mavfwd -levent_core -s
endef

define MAVFWD_INSTALL_TARGET_CMDS
$(INSTALL) -m 755 -d $(TARGET_DIR)/usr/bin
$(INSTALL) -m 0755 -D $(@D)/mavfwd $(TARGET_DIR)/usr/bin/mavfwd
$(INSTALL) -m 755 -d $(TARGET_DIR)/usr/bin
$(INSTALL) -m 755 -t $(TARGET_DIR)/usr/bin $(@D)/mavfwd

$(INSTALL) -m 755 -d $(TARGET_DIR)/usr/sbin
cp $(MAVFWD_PKGDIR)/files/channels.sh $(TARGET_DIR)/usr/sbin
$(INSTALL) -m 755 -d $(TARGET_DIR)/usr/sbin
$(INSTALL) -m 755 -t $(TARGET_DIR)/usr/sbin $(MAVFWD_PKGDIR)/files/channels.sh
endef

$(eval $(generic-package))

0 comments on commit 79d8407

Please sign in to comment.