| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- #!/bin/bash
- source ~/BallonSonde/variables.sh
- source ~/BallonSonde/functions.sh
- if [ ! -f /ramfs/.canbetx ]; then
- echo "Nothing to transmit, wait 5 seconds"
- sleep 5
- exit 1
- fi
- rm /ramfs/.canbetx
- echo "=> moving totx.wav to out.wav"
- mv /ramfs/totx.wav /ramfs/out.wav
- # Utile pour couper le TX quand on ctrl+c et que le script n'abouti pas
- trap ctrl_c INT
- function ctrl_c() {
- echo "Ctrl + C happened"
- ptt_off
- rm -rf /ramfs/*
- }
- ptt_on
- sleep 1
- echo " => Playing WAV file"
- #cd ~/trxamadrmv3_7/linux
- #./txwfal 0
- #sleep 1
- ############################
- # Partie prez + SSTV
- aplay $DEFAULT_PATH/sound/2025_stpourcain/1_prez.wav
- ionice -c 2 -n 0 aplay /ramfs/out.wav
- sleep 1
- ###########################
- # Partie QPSK31
- aplay $DEFAULT_PATH/sound/2025_stpourcain/2_qpsq31.wav
- $DEFAULT_PATH/tx_process/qpsk31
- aplay /ramfs/psk.wav
- ###########################
- # Partie CW super crade
- #if [[ $HAVE_GPS = 1 ]]
- #then
- # ARGS=$($DEFAULT_PATH/read_nmea.py | awk '{print $3 $5}' | awk -F'[=,]' '{print "--lat " $2 " --lon " $4}')
- # QTH=$($DEFAULT_PATH/qth_locator.py location_to_square $ARGS)
- # MESSAGE="$INDICATIF-AM $INDICATIF-AM from France
- #QTH : $QTH
- #PEACE FOR ALL
- #"
- #else
- MESSAGE="$INDICATIF-AM $INDICATIF-AM from France
- PEACE FOR ALL
- "
- #fi
- aplay $DEFAULT_PATH/sound/2025_stpourcain/3_cw.wav
- echo $MESSAGE | /usr/local/bin/cwwav -f 700 -w 22 -o /ramfs/cw.wav; aplay /ramfs/cw.wav; rm /ramfs/cw.wav
- ##########################
- # Stop Message
- aplay $DEFAULT_PATH/sound/2025_stpourcain/4_stop.wav
- ptt_off
- ##########################
- # un peu de repos pour le transceiver :)
- # et ça aide au GPS pour retrouver ses petits.
- sleep 30
- if [[ -f /ramfs/out.wav ]]; then
- echo " => All done, cleaning ramfs"
- rm -rf /ramfs/out.wav
- fi
|