remove run telemetry from venc init script

pull/1025/head
cronyx 2023-10-08 23:11:01 +03:00
parent df0984c2dd
commit 4f4c78bc8a
5 changed files with 7 additions and 17 deletions

View File

@ -35,8 +35,7 @@ case "$1" in
if [ ${telemetry} = "true" ]; then
/usr/bin/telemetry start
fi
fi
if [ ${fw} = "fpv" ]; then
else
echo "Starting wifibroadcast service..."
/usr/bin/wifibroadcast start
fi

View File

@ -1,3 +1,5 @@
#!/bin/sh
echo $1 $2 >> /tmp/channels.log
exit 1

View File

@ -19,5 +19,5 @@ fec_timeout=0
guard_interval=long
one_way=false
### for mavfwd: RC override channels to parse after first 4 and call /usr/bin/channels.sh $ch $val, default 0
### for mavfwd: RC override channels to parse after first 4 and call /usr/sbin/channels.sh $ch $val, default 0
channels=14

View File

@ -3,28 +3,17 @@
# Start venc encoder
#
. /etc/datalink.conf
case "$1" in
start)
if ! [ -f /dev/ven ]; then
ln -s /dev/venc /dev/ven
fi
echo "Starting venc encoder service..."
venc -p 5600 -f 30 -r 7168 -n 1400 -c 265cbr -d frame -v 200_imx307F -s 720p &
if [ ${telemetry} = "true" ]; then
echo "Starting telemetry service..."
/usr/bin/telemetry start
fi
;;
stop)
echo "Stopping venc encoder & telemetry services..."
echo "Stopping venc encoder services..."
kill -9 $(pidof venc)
kill -9 $(pidof telemetry_rx)
kill -9 $(pidof telemetry_tx)
kill -9 $(pidof mavfwd)
;;
*)
echo "Usage: $0 {start|stop}"