|
@@ -1,6 +1,7 @@
|
|
|
#!/bin/bash
|
|
|
|
|
|
source ~/BallonSonde/variables.sh
|
|
|
+source ~/BallonSonde/functions.sh
|
|
|
|
|
|
if [ ! -f /ramfs/.canbetx ]; then
|
|
|
echo "Nothing to transmit, wait 5 seconds"
|
|
@@ -16,14 +17,11 @@ mv /ramfs/totx.wav /ramfs/out.wav
|
|
|
trap ctrl_c INT
|
|
|
function ctrl_c() {
|
|
|
echo "Ctrl + C happened"
|
|
|
- raspi-gpio set 4 dh
|
|
|
+ ptt_off
|
|
|
rm -rf /ramfs/*
|
|
|
}
|
|
|
|
|
|
-# Setup the GPIO4 as output for Tx
|
|
|
-raspi-gpio set 4 op && raspi-gpio set 4 dh
|
|
|
-
|
|
|
-raspi-gpio set 4 dl
|
|
|
+ptt_on
|
|
|
sleep 1
|
|
|
echo " => Playing WAV file"
|
|
|
cd ~/trxamadrmv3_7/linux
|
|
@@ -63,8 +61,7 @@ echo $MESSAGE | /usr/local/bin/cwwav -f 700 -w 22 -o /ramfs/cw.wav; aplay /ramfs
|
|
|
# Stop Message
|
|
|
|
|
|
aplay ~/BallonSonde/sound/2025_stpourcain/4_stop.wav
|
|
|
-# On coupe le TX
|
|
|
-raspi-gpio set 4 dh
|
|
|
+ptt_off
|
|
|
|
|
|
##########################
|
|
|
# un peu de repos pour le transceiver :)
|