From 78bb41638742f39bd218a628824e3d950a9b5648 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 12 Oct 2024 20:41:16 -0400 Subject: [PATCH] Update command change 435M to sim.cfg value --- command | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/command b/command index 3d027a07..a4c1be42 100755 --- a/command +++ b/command @@ -78,8 +78,15 @@ else value=`aplay -l | grep "Loopback"` echo "$value" > /dev/null set -- $value + + value=`cat /home/pi/CubeSatSim/sim.cfg` + echo "$value" > /dev/null + set -- $value + + echo "Current value of rx is" + echo $8 - rtl_fm -M fm -f 435M -s 48k | aplay -D plughw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1 & + rtl_fm -M fm -f $8M -s 48k | aplay -D plughw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1 & if [ "$debug" = "1" ]; then