- Timestamp:
- 01/28/14 10:37:28 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/scripts/Main.js
r17403 r17538 260 260 // ramping and will reject the command to switch the 261 261 // voltage off 262 dim.send("FEEDBACK/STOP");263 dim.wait("FEEDBACK", "Calibrated", 3000);262 //dim.send("FEEDBACK/STOP"); 263 //dim.wait("FEEDBACK", "Calibrated", 3000); 264 264 265 265 // Make sure we are not in Ramping anymore 266 dim.wait("BIAS_CONTROL", "VoltageOn", 3000);266 //dim.wait("BIAS_CONTROL", "VoltageOn", 3000); 267 267 268 268 // Switch voltage off … … 401 401 } 402 402 403 v8.timeout(150000, func); 403 try { v8.timeout(150000, func); } 404 catch (e) 405 { 406 var p = sub.get(); 407 dim.log('Park position not reached? Telescope at Zd='+p.obj['Zd']+' Az='+p.obj['Az']); 408 } 404 409 405 410 /* … … 713 718 } 714 719 715 console.log("IRQ "+irq+" unhandled... stopping script.");720 dim.log("IRQ "+irq+" unhandled... stopping script."); 716 721 return true; 717 722 } … … 942 947 943 948 case "OVTEST": 944 var park = Sun.horizon(-27).isUp;945 if ( park)949 var locked = dim.state("DRIVE_CONTROL").name=="Locked"; 950 if (!locked) 946 951 dim.send("DRIVE_CONTROL/PARK"); 952 947 953 dim.send("FEEDBACK/STOP"); 948 954 949 // The lid must be close s955 // The lid must be closed 950 956 CloseLid(); 951 957 952 if ( park)953 { 954 console.out("Waiting for telescope to park. This may take a while.");958 if (!locked) 959 { 960 //console.out("Waiting for telescope to park. This may take a while."); 955 961 dim.wait("DRIVE_CONTROL", "Locked", 3000); 962 dim.send("DRIVE_CONTROL/UNLOCK"); 956 963 } 957 964
Note:
See TracChangeset
for help on using the changeset viewer.