From 2c5759e7d434be93ab1ecda25ef2210ceee60d5e Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 15 Oct 2024 10:24:33 -0400 Subject: [PATCH] Update command add card and freq variables --- command | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/command b/command index a4c1be42..6bc08fa8 100755 --- a/command +++ b/command @@ -79,14 +79,18 @@ else echo "$value" > /dev/null set -- $value + card=${2:0:1} + value=`cat /home/pi/CubeSatSim/sim.cfg` echo "$value" > /dev/null set -- $value + + freq=$8 echo "Current value of rx is" - echo $8 + echo $freq - 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 & + rtl_fm -M fm -f $freqM -s 48k | aplay -D plughw:$card,0,0 -r 48000 -t raw -f S16_LE -c 1 & if [ "$debug" = "1" ]; then