Unverified Commit ba116337 authored by Tammo Jan Dijkema's avatar Tammo Jan Dijkema
Browse files

Give speeds in deg/s

parent 05a3ef77
......@@ -18,6 +18,9 @@ _telescope__num_instances = 0
__version__ = "1.2.1"
_AZIMUTH_GEAR = 15006.75 # from dt_ctrl.ctrl
_ELEVATION_GEAR = 44803.125
class Telescope:
def __init__(self, setmode=None, consoleHost=None):
......@@ -174,8 +177,8 @@ class Telescope:
self.el = (float(vals[1]) * u.rad).to(u.deg)
self.dist_az = (float(vals[2]) * u.rad).to(u.deg)
self.dist_el = (float(vals[3]) * u.rad).to(u.deg)
self.speed_az = float(vals[4])
self.speed_el = float(vals[5])
self.speed_az = ((float(vals[4]) * u.rad / u.s) / _AZIMUTH_GEAR).to(u.deg / u.s)
self.speed_el = ((float(vals[5]) * u.rad / u.s) / _ELEVATION_GEAR).to(u.deg / u.s)
self.focusbox_pos = float(vals[6])
self._event_traces.set()
......
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