Update transmit.py cross band repeater shift 434.9 to 145

fc-c
Alan Johnston 10 months ago committed by GitHub
parent b9258890ff
commit a7cd85cf76
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -808,8 +808,8 @@ if __name__ == "__main__":
# GPIO.setup(powerPin, GPIO.OUT)
GPIO.setup(squelch, GPIO.IN, pull_up_down=GPIO.PUD_UP) ## pull up in case pin is not connected
# GPIO.output(powerPin, 1) # was 0
txf = float(rx) - 290.0
print("Transmit frequency: ",tx)
txf = float(tx) - 289.9
print("Transmit frequency: ",txf)
while True:
sleep(0.5)
if (GPIO.input(squelch) == False):
@ -820,9 +820,7 @@ if __name__ == "__main__":
# system("arecord -D plughw:CARD=Device,DEV=0 | csdr convert_i16_f | csdr gain_ff 14000 | csdr convert_f_samplerf 20833 | sudo rpitx -i- -m RF -f " + tx + "e3 &")
## system("arecord -D plughw:CARD=Device,DEV=0 -f S16_LE -r 48000 -c 1 | csdr convert_s16_f | csdr gain_ff 14000 | csdr convert_f_samplerf 20833 | sudo rpitx -i- -m RF -f " + tx + "e3 &")
system("sudo nc -l 8011 | csdr convert_i16_f | csdr gain_ff 16000 | csdr convert_f_samplerf 20833 | sudo rpitx -i- -m RF -f " + str(txf) + "e3 &")
sleep(1)
print("Sleeping 2")
sleep(1)
sleep(0.5)
# system("sudo arecord -D plughw:1 -r48000 -fS16_LE -c1 | nc localhost 8011 &")
system("sudo arecord -D plughw:CARD=Device,DEV=0 -r48000 -fS16_LE -c1 | nc localhost 8011 &")
# GPIO.output(powerPin, 1)

Loading…
Cancel
Save

Powered by TurnKey Linux.