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); 16