Commit d7ed83c0 authored by Tammo Jan Dijkema's avatar Tammo Jan Dijkema
Browse files

Make update rate configurable

parent b39d9c7c
...@@ -9,12 +9,13 @@ from camrasdevices import LocalOscillator ...@@ -9,12 +9,13 @@ from camrasdevices import LocalOscillator
def main(): def main():
parser = argparse.ArgumentParser(description = "Adjust the frequency of the local oscillator to Doppler track a frequency at the pointing of the telescope") parser = argparse.ArgumentParser(description = "Adjust the frequency of the local oscillator to Doppler track a frequency at the pointing of the telescope")
parser.add_argument("-f", "--frequency", help="Frequency to track, default is HI frequency at {}".format(track_doppler.freq_hi), default=track_doppler.freq_hi, type=float) parser.add_argument("-f", "--frequency", help="Frequency to track, default is HI frequency at {}".format(track_doppler.freq_hi), default=track_doppler.freq_hi, type=float)
parser.add_argument("-u", "--updaterate", help="Update rate in seconds, default is 0.5", type=float, default=0.5)
args = parser.parse_args() args = parser.parse_args()
dt = telescope() dt = telescope()
lo = LocalOscillator() lo = LocalOscillator()
track_doppler.track_doppler(dt, lo, tracking_frequency=args.frequency) track_doppler.track_doppler(dt, lo, tracking_frequency=args.frequency, timeout=args.updaterate)
if __name__ == '__main__': if __name__ == '__main__':
main() main()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment