From ce35b94dfe000630d66609a105fe55fbe87680c5 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sat, 18 Sep 2021 16:56:22 -0400 Subject: [PATCH] repeat WAV play --- groundstation/packet.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/groundstation/packet.sh b/groundstation/packet.sh index a7c0e81a..638ac5d3 100755 --- a/groundstation/packet.sh +++ b/groundstation/packet.sh @@ -123,9 +123,12 @@ else echo "$value" > /dev/null set -- $value - aplay -D hw:0,0 /home/pi/CubeSatSim/telem.wav & - aplay -D hw:${2:0:1},0,0 /home/pi/CubeSatSim/telem.wav & - + #aplay -D hw:0,0 /home/pi/CubeSatSim/telem.wav & + (while true; do (sleep 2 && aplay -D hw:0,0 /home/pi/CubeSatSim/telem.wav); done) & + + #aplay -D hw:${2:0:1},0,0 /home/pi/CubeSatSim/telem.wav & + (while true; do (sleep 2 && aplay -D hw:${2:0:1},0,0 /home/pi/CubeSatSim/telem.wav); done) & + timeout 30 direwolf -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-4800.conf -r 48000 -t 0 echo