From 8e654509e3abc8ce73e3087a1b3beb639ef44332 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Fri, 14 May 2021 21:49:27 -0400 Subject: [PATCH] Update rpitx.py --- rpitx.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/rpitx.py b/rpitx.py index 81bfe9fc..05968761 100644 --- a/rpitx.py +++ b/rpitx.py @@ -69,16 +69,15 @@ if __name__ == "__main__": # Camera warm-up time sleep(2) camera.capture('sstv_image.jpg') -# except: - - GPIO.output(txLed, txLedOn); + finally: + GPIO.output(txLed, txLedOn); # GPIO.output(27, 0); - print("Sleeping") - time.sleep(10) - print("Transmitting SSTV") - GPIO.output(txLed, txLedOff); + print("Sleeping") + time.sleep(10) + print("Transmitting SSTV") + GPIO.output(txLed, txLedOff); # GPIO.output(27, 1); - time.sleep(10) + time.sleep(10) # os.system("cat /home/pi/CubeSatSim/wav/sstv.wav | csdr convert_i16_f | csdr gain_ff 7000 | csdr convert_f_samplerf 20833 | sudo rpitx -i- -m RF -f 434.9e3") elif (('b' == sys.argv[1]) or ('bpsk' in sys.argv[1])):