Update transmit.py if beacon on, restart pacsatsim

master-b-p-s
Alan Johnston 2 weeks ago committed by GitHub
parent 10b7a28ee9
commit d720f03055
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -551,7 +551,8 @@ if __name__ == "__main__":
print("Pacsat Ground Station") print("Pacsat Ground Station")
else: else:
print("Pacsat") print("Pacsat")
# system("sudo systemctl restart pacsatsim") if (command_tx == True):
system("sudo systemctl restart pacsatsim")
output(txLed, 0) output(txLed, 0)
print("0") print("0")
rpitx = "arecord -D plughw:CARD=Loopback,DEV=1 -f S16_LE -r 48000 -c 1 | csdr convert_s16_f | csdr gain_ff 4000 | csdr convert_f_samplerf 20833 | sudo rpitx -i- -m RF -f " + tx + "e3 > /dev/null 2>&1 &" rpitx = "arecord -D plughw:CARD=Loopback,DEV=1 -f S16_LE -r 48000 -c 1 | csdr convert_s16_f | csdr gain_ff 4000 | csdr convert_f_samplerf 20833 | sudo rpitx -i- -m RF -f " + tx + "e3 > /dev/null 2>&1 &"

Loading…
Cancel
Save

Powered by TurnKey Linux.