Changeset 17403 for trunk/FACT++
- Timestamp:
- 11/30/13 19:10:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/scripts/Main.js
r17356 r17403 683 683 // ---------------------------------------------------------------- 684 684 dim.log("Entering main loop."); 685 console.out(""); 685 686 686 687 var run = -2; // getObservation never called … … 696 697 return false; 697 698 699 if (irq.toUpperCase()=="RESCHEDULE") 700 return true; 701 698 702 if (irq.toUpperCase()=="OFF") 699 703 { … … 750 754 if (lastId!=obs.id) // !Object.isEqual(obs, nextObs) 751 755 { 752 console.out("");753 756 dim.log("Starting new observation ["+obs.start.toUTCString()+", id="+obs.id+"]"); 754 757 … … 939 942 940 943 case "OVTEST": 941 dim.send("DRIVE_CONTROL/PARK"); 944 var park = Sun.horizon(-27).isUp; 945 if (park) 946 dim.send("DRIVE_CONTROL/PARK"); 942 947 dim.send("FEEDBACK/STOP"); 943 948 … … 945 950 CloseLid(); 946 951 947 console.out("Waiting for telescope to park. This may take a while."); 948 dim.wait("DRIVE_CONTROL", "Locked", 3000); 952 if (park) 953 { 954 console.out("Waiting for telescope to park. This may take a while."); 955 dim.wait("DRIVE_CONTROL", "Locked", 3000); 956 } 949 957 950 958 // Check if DRS calibration is necessary … … 1172 1180 1173 1181 if (nextObs!=undefined && sub==obs.length-1) 1174 {1175 1182 dim.log("Next observation will start at "+nextObs.start.toUTCString()+" [id="+nextObs.id+"]"); 1176 console.out("");1177 }1178 1183 1179 1184 sub++;
Note:
See TracChangeset
for help on using the changeset viewer.