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

Simplify waitUntilThere

parent 95297f85
......@@ -337,8 +337,8 @@ class Telescope:
self.logger.info("Waiting to reach setpoint")
distIsSmall = False
while not distIsSmall:
diff = self.getDistance(waitForUpdate=waitForUpdate)
distIsSmall = abs(self.dist_el) < tolerance and abs(self.dist_az) < tolerance
(dist_el, dist_az) = self.getDistance(waitForUpdate=waitForUpdate)
distIsSmall = abs(dist_el) < tolerance and abs(dist_az) < tolerance
def waitUntilMoving(self, tolerance=0.01 * u.deg):
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