|
|
|
@ -620,18 +620,19 @@ def cw_transmit_char(character):
|
|
|
|
def transmit_carrier(duration):
|
|
|
|
def transmit_carrier(duration):
|
|
|
|
global tx_doppler_freq_hz
|
|
|
|
global tx_doppler_freq_hz
|
|
|
|
global txLed
|
|
|
|
global txLed
|
|
|
|
# command = "timeout " + str(duration) + " sudo tune -f " + str(tx_doppler_freq_hz) + " > /dev/null 2>&1" # 434.9e6
|
|
|
|
command = "timeout " + str(duration) + " sudo tune -f " + str(tx_doppler_freq_hz) + " > /dev/null 2>&1" # 434.9e6
|
|
|
|
start = "sudo tune -f " + str(tx_doppler_freq_hz) + " &" # + " & > /dev/null 2>&1" # 434.9e6
|
|
|
|
start = "sudo tune -f " + str(tx_doppler_freq_hz) + " &" # + " & > /dev/null 2>&1" # 434.9e6
|
|
|
|
stop = "sudo rpitx -f 434.9e6 &"
|
|
|
|
stop = "sudo rpitx -f 434.9e6 &"
|
|
|
|
killrpitx = "sudo killall -9 rpitx &"
|
|
|
|
killrpitx = "sudo killall -9 rpitx &"
|
|
|
|
killtune = "sudo killall -9 tune &"
|
|
|
|
killtune = "sudo killall -9 tune &"
|
|
|
|
output(txLed, 1)
|
|
|
|
output(txLed, 1)
|
|
|
|
system(start)
|
|
|
|
# system(start)
|
|
|
|
sleep(duration)
|
|
|
|
system(command)
|
|
|
|
system(stop)
|
|
|
|
# sleep(duration)
|
|
|
|
|
|
|
|
# system(stop)
|
|
|
|
output(txLed, 0)
|
|
|
|
output(txLed, 0)
|
|
|
|
system(killrpitx)
|
|
|
|
# system(killrpitx)
|
|
|
|
system(killtune)
|
|
|
|
# system(killtune)
|
|
|
|
|
|
|
|
|
|
|
|
print("CubeSatSim v2.2 transmit.py starting...")
|
|
|
|
print("CubeSatSim v2.2 transmit.py starting...")
|
|
|
|
|
|
|
|
|
|
|
|
|