Changeset 15016
- Timestamp:
- 03/10/13 14:42:39 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/scripts/Main.js
r15007 r15016 530 530 531 531 for (var i=0; i<observations.length; i++) 532 if ( now<observations[i].start)532 if (now<observations[i].start) 533 533 return i-1; 534 534 535 535 return observations.length-1; 536 536 } … … 645 645 else 646 646 dim.send("DRIVE_CONTROL/TRACK", obs.ra, obs.dec); 647 647 648 648 //OpenLid(); 649 649 dim.wait("DRIVE_CONTROL", "OnTrack", 300000); … … 664 664 dim.wait("BIAS_CONTROL", "VoltageOn", -100); 665 665 dim.wait("FAD_CONTROL", "Connected", -100); 666 666 667 667 dim.wait("RATE_SCAN","Connected", 5000); 668 668 dim.send("RATE_SCAN/START_THRESHOLD_SCAN", 50, 1000, -10); … … 676 676 // So I decided to put this line here as a kind of patchwork.... 677 677 dim.send("FAD_CONTROL/SET_FILE_FORMAT", 2); 678 678 679 679 console.out("Ratescan done."); 680 680 run = -1; … … 746 746 747 747 if (valid) 748 console.out(" Last DRS calib: "+diff+"min ago");748 console.out(" Last DRS calib: %.1fmin ago".$(diff)); 749 749 else 750 750 console.out(" No valid drs calibration"); … … 826 826 { 827 827 var time = new Date(); 828 if (!takeRun("data", -1, len)) // Take data (5min) 829 len -= parseInt((new Date()-time)/1000); 830 else 828 if (takeRun("data", -1, len)) // Take data (5min) 831 829 break; 830 831 len -= parseInt((new Date()-time)/1000); 832 832 } 833 833
Note:
See TracChangeset
for help on using the changeset viewer.