Last change
on this file since 19899 was 17399, checked in by tbretz, 11 years ago |
Check (and wait a short time) whether server is online.
|
File size:
373 bytes
|
Line | |
---|
1 | var zd = $['zd'];
|
---|
2 | var az = $['az'];
|
---|
3 |
|
---|
4 | if (isNaN(zd) || zd<-100 || zd>100)
|
---|
5 | throw new Error("Invalid zenith distance!");
|
---|
6 |
|
---|
7 | if (isNaN(az) || az<-290 || az>80)
|
---|
8 | throw new Error("Invalid azimuth!");
|
---|
9 |
|
---|
10 | console.out("Moving telescope to zd="+zd+"deg, az="+az+"deg");
|
---|
11 |
|
---|
12 | include("scripts/CheckStates.js");
|
---|
13 |
|
---|
14 | checkSend(["DRIVE_CONTROL"]);
|
---|
15 | dim.send("DRIVE_CONTROL/MOVE_TO", zd, az);
|
---|
Note:
See
TracBrowser
for help on using the repository browser.