Changeset 1959 for trunk/MagicSoft/Cosy/gui/MGStarguider.cc
- Timestamp:
- 04/14/03 17:54:32 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/gui/MGStarguider.cc
r1953 r1959 56 56 IDM_kPNG, 57 57 IDM_kOnce, 58 IDM_kStretch, 58 59 IDM_kUseFileRaDec, 59 60 IDM_kContinous, … … 204 205 fDisplay->AddEntry("Sao &Catalog", IDM_kCatalog); 205 206 fDisplay->AddEntry("Starguider", IDM_kStarguider); 207 fDisplay->AddEntry("Stretch", IDM_kStretch); 206 208 fDisplay->DisableEntry(IDM_kStarguider); 209 fDisplay->CheckEntry(IDM_kStretch); 207 210 fDisplay->Associate(this); 208 211 fList->Add(fDisplay); … … 637 640 case IDM_kStarguider: 638 641 Toggle(fDisplay, IDM_kStarguider); 642 gSystem->Unlink("tracking_error.txt"); 639 643 return kTRUE; 640 644 … … 648 652 fDisplay->DisableEntry(IDM_kStarguider); 649 653 } 654 return kTRUE; 655 656 case IDM_kStretch: 657 Toggle(fDisplay, IDM_kStretch); 650 658 return kTRUE; 651 659 … … 928 936 pos1 -= pos0; 929 937 930 ofstream fout2("tracking_error.txt" );938 ofstream fout2("tracking_error.txt", ios::app); 931 939 fout2 << setprecision(10) << fSao->GetMjd()-52000 << " " << -pos1.Alt() << " " << pos1.Az() << endl; 932 940 … … 1017 1025 return; 1018 1026 1019 cout << "Img: " << n << endl;1027 //cout << "Img: " << n << endl; 1020 1028 1021 1029 byte c[768*576]; 1022 1030 for (int i=0; i<768*576; i++) 1023 1031 c[i] = (byte)(myimg[i]/fIntRate+.5); 1032 1033 if (fDisplay->IsEntryChecked(IDM_kStretch)) 1034 Filter::Stretch(c); 1024 1035 1025 1036 if (!fWritePictures->IsEntryEnabled(IDM_kStart) &&
Note:
See TracChangeset
for help on using the changeset viewer.