Changeset 9445 for trunk/MagicSoft/Cosy/main
- Timestamp:
- 05/12/09 00:33:30 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/main/MStarguider.cc
r9439 r9445 1360 1360 Int_t cnt=0; 1361 1361 1362 MStar *star ;1362 MStar *star=0; 1363 1363 MStarListIter NextStar(&stars); 1364 1364 while ((star=NextStar()) && cnt<num+5) … … 1379 1379 x.AddAt(dpos.X(), idx); 1380 1380 y.AddAt(dpos.Y(), idx); 1381 mag.AddAt(log(spot->GetMag())/star->GetMag(), idx); 1382 1381 mag.AddAt(1, idx); 1382 // mag.AddAt(log(spot->GetMag())/star->GetMag(), idx); 1383 /* 1383 1384 #ifdef EXPERT 1384 1385 if (fout) … … 1393 1394 } 1394 1395 #endif 1396 */ 1395 1397 } 1396 1398 cnt++; … … 1416 1418 1417 1419 // Check StargTPoint data set request 1418 if (!f Display->IsEntryChecked(IDM_kStarguiderMode) || !fTPoint->IsDown())1420 if (!fMode->IsEntryChecked(IDM_kStarguiderMode) || !fTPoint->IsDown()) 1419 1421 return numcor; 1420 1422 fTPoint->SetDown(kFALSE); … … 1465 1467 *fOutStargTp << " " << setprecision(11) << t.GetMjd(); 1466 1468 *fOutStargTp << " " << setprecision(4) << center.GetMag(); 1467 *fOutStargTp << " "<< star->GetMag();1469 *fOutStargTp << " 0";// << star->GetMag(); 1468 1470 *fOutStargTp << " " << center.GetX() << " " << center.GetY(); 1469 1471 *fOutStargTp << " 0 0"; 1470 1472 *fOutStargTp << " " << numleds << " " << numrings; 1471 1473 *fOutStargTp << " " << num << " " << numcor << " " << bright; 1474 *fOutStargTp << " " << fTPointStarMag << " " << fTPointStarName; 1472 1475 *fOutStargTp << endl; 1473 1476 … … 1545 1548 1546 1549 // Check TPoint data set request 1547 if (!f Display->IsEntryChecked(IDM_kTpointMode) || !fTPoint->IsDown())1550 if (!fMode->IsEntryChecked(IDM_kTpointMode) || !fTPoint->IsDown()) 1548 1551 return; 1549 1552 … … 1600 1603 *fOutTp << " " << numleds << " " << numrings; 1601 1604 *fOutTp << " 0 0 0"; 1605 *fOutTp << " " << fTPointStarMag << " " << fTPointStarName; 1602 1606 *fOutTp << endl; 1603 1607 … … 1744 1748 fNumStarsDetected = 0; 1745 1749 1746 cout << " * Switching to TPoint mode" << endl; 1747 // Switch to tpoint mode 1748 fMode->UnCheckEntry(IDM_kTpointMode); 1749 ProcessMessage(MK_MSG(kC_COMMAND, kCM_MENU), IDM_kTpointMode, 0); 1750 return kFALSE; 1750 if (!fMode->IsEntryChecked(IDM_kTpointMode)) 1751 { 1752 cout << " * Switching to TPoint mode" << endl; 1753 // Switch to tpoint mode 1754 fMode->UnCheckEntry(IDM_kTpointMode); 1755 ProcessMessage(MK_MSG(kC_COMMAND, kCM_MENU), IDM_kTpointMode, 0); 1756 return kFALSE; 1757 } 1758 fTPointFromCC++; 1751 1759 1752 1760 case 2: … … 1791 1799 fMode->UnCheckEntry(IDM_kTpointMode); 1792 1800 ProcessMessage(MK_MSG(kC_COMMAND, kCM_MENU), IDM_kTpointMode, 0); 1793 break; 1801 fTPointFromCC = -1; 1802 return kFALSE; 1794 1803 } 1795 1804 1796 1805 // Send report 1797 fTPointFromCC = -1;1798 1806 /* 1799 1807 if (!fCosy)
Note:
See TracChangeset
for help on using the changeset viewer.