source: branches/FACT++_part_filenames/scripts/doMoveTelescope.js@ 19365

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