source: trunk/FACT++/scripts/doMoveTelescope.js@ 17395

Last change on this file since 17395 was 17391, checked in by tbretz, 11 years ago
Script for smartfact web interface.
File size: 307 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
12dim.send("DRIVE_CONTROL/MOVE_TO", zd, az);
Note: See TracBrowser for help on using the repository browser.