source:
trunk/FACT++/scripts/doMoveTelescope.js@
17395
Last change on this file since 17395 was 17391, checked in by , 11 years ago | |
---|---|
File size: 307 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 | dim.send("DRIVE_CONTROL/MOVE_TO", zd, az); |
Note:
See TracBrowser
for help on using the repository browser.