Commit 31d4af94 authored by Tammo Jan Dijkema's avatar Tammo Jan Dijkema
Browse files

Add switches to getJ2000

parent 61ad69e3
......@@ -317,16 +317,18 @@ class Telescope:
def getJ2000(self):
"""
Generates dicts with 'radec' and 'setpoint_radec',
containing radec and setpoint_radec, at whichever
speed the console is outputting them (probably once a second).
:return: Generates a dict with keys ('radec', 'setpoint_radec', 'tracking_enabled',
'refraction_enabled', 'model_enabled') at the speed of output of the console (once a second)
"""
self._event_traces.clear()
while True:
self._event_j2000.wait()
self._event_j2000.clear()
yield ({'radec': self.radec,
'setpoint_radec': self.setpoint_radec})
'setpoint_radec': self.setpoint_radec,
'tracking_enabled': self.tracking_enabled,
'refraction_enabled': self.refraction_enabled,
'model_enabled': self.model_enabled})
def getTraces(self):
"""
......@@ -345,4 +347,4 @@ class Telescope:
class telescope(Telescope):
def __init__(self, *args, **kwargs):
super(Telescope, self).__init__(*args, **kwargs)
logging.warning("Please use the new class name Telescope (with capital T)")
\ No newline at end of file
logging.warning("Please use the new class name Telescope (with capital T)")
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