fix rockprog integration

This commit is contained in:
Jakob Ketterl 2020-06-07 22:53:31 +02:00
parent 81465d69cc
commit c0f447ca20

View File

@ -17,10 +17,10 @@ class FifiSdrSource(DirectSource):
return super().getEventNames() + ["device"]
def getFormatConversion(self):
return ["csdr convert_s16_f", "csdr gain_ff 30"]
return ["csdr convert_s16_f", "csdr gain_ff 5"]
def sendRockProgFrequency(self, frequency):
process = Popen(["rockprog", "--vco", "-w", "--", "freq={}".format(frequency / 1E6)])
process = Popen(["rockprog", "--vco", "-w", "--freq={}".format(frequency / 1E6)])
process.communicate()
rc = process.wait()
if rc != 0: