Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tammo Jan Dijkema
telescope
Commits
05a3ef77
Unverified
Commit
05a3ef77
authored
Jul 06, 2021
by
Tammo Jan Dijkema
Browse files
Sleep a bit in waitUntilThere
parent
e17d6ebf
Changes
1
Hide whitespace changes
Inline
Side-by-side
telescope.py
View file @
05a3ef77
...
...
@@ -2,6 +2,7 @@ from __future__ import print_function
import
socket
import
logging
import
time
from
astropy.coordinates
import
SkyCoord
,
RangeError
from
configparser
import
ConfigParser
import
astropy.units
as
u
...
...
@@ -335,6 +336,8 @@ class Telescope:
"""
self
.
logger
.
info
(
"Waiting to reach setpoint"
)
if
waitForUpdate
:
time
.
sleep
(
1
)
distIsSmall
=
False
while
not
distIsSmall
:
(
dist_el
,
dist_az
)
=
self
.
getDistance
(
waitForUpdate
=
waitForUpdate
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment