Changeset 18923
- Timestamp:
- 10/25/17 14:28:06 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/scripts/Main.js
r18914 r18923 804 804 // Install interrupt handler 805 805 // ---------------------------------------------------------------- 806 var triggerReloadSources = false; 807 806 808 function handleIrq(cmd, args, time, user) 807 809 { … … 810 812 console.out(" Time: "+time); 811 813 console.out(" User: "+user); 814 815 if (cmd.toUpperCase()=="RELOADSOURCES") 816 { 817 dim.log("Reloading source table scheduled before next pointing operation."); 818 triggerReloadSources = true; 819 return; 820 } 812 821 813 822 irq = cmd ? cmd : "stop"; … … 1518 1527 dim.wait("DRIVE_CONTROL", "Initialized", 15000); 1519 1528 1529 if (triggerReloadSources) // It's all synchronous - no need to wait here 1530 { 1531 dim.send("DRIVE_CONTROL/RELOAD_SOURCES"); 1532 triggerReloadSources = false; 1533 dim.log("Reloading source table triggered in drivectrl."); 1534 } 1535 1520 1536 if (obs[sub].orbit) // != undefined, != null, != 0 1521 1537 dim.send("DRIVE_CONTROL/TRACK_ORBIT", angle, obs[sub].orbit, obs[sub].source);
Note:
See TracChangeset
for help on using the changeset viewer.