| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 | 
							- #!/bin/bash
 
- # 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"
 
-     raspi-gpio set 4 dh
 
-     rm -rf /ramfs/*
 
- }
 
- # Setup the GPIO4 as output for Tx
 
- raspi-gpio set 4 op && raspi-gpio set 4 dh
 
- IMG=$(cd /ramfs; find ./ -type f -name *.jpg -exec readlink -f {} \;)
 
- #############
 
- # Mode SSTV
 
- echo " => Converting image to WAV..."
 
- cd ~/PySSTV/
 
- source bin/activate
 
- python -m pysstv --mode PD120 $IMG /ramfs/out.wav
 
- deactivate
 
- raspi-gpio set 4 dl
 
- sleep 1
 
- echo " => Playing WAV file"
 
-  TXT_TO_WFALL
 
- cd ~/trxamadrmv3_7/linux
 
- ./txwfal 0
 
- sleep 1
 
- aplay ~/BallonSonde/annonce_start.wav
 
- sleep 1
 
- aplay /ramfs/out.wav
 
- aplay ~/BallonSonde/annonce_stop.wav
 
- raspi-gpio set 4 dh
 
- #############
 
- # Mode DRM
 
- #cd ~/trxamadrmv3_7/linux/
 
- #./drm $IMG
 
- #raspi-gpio set 4 dh
 
- echo " => All done, cleaning ramfs"
 
- rm -rf /ramfs/*
 
 
  |