- Timestamp:
- 05/12/09 00:33:30 (16 years ago)
- Location:
- trunk/MagicSoft/Cosy
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/Changelog
r9443 r9445 1 1 -*-*- END -*-*- 2 3 2009/05/12 Thomas Bretz (La Palma) 4 5 * main/MStarguider.cc: 6 - a few sanity fixes 7 - star-pointer doesn't exist in Starguider procedure anymore 8 - replaced fDisplay by fMode 9 - addes tar magnitude and name to output in tpoints 10 - don't switch to tpoint mode in tpoint procedure if already 11 switched on 12 13 * tcpip/MDriveCom.cc: 14 - don't post the tpoint messages but just execute 15 16 2 17 3 18 2009/05/11 Thomas Bretz (La Palma) -
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) -
trunk/MagicSoft/Cosy/tcpip/MDriveCom.cc
r9439 r9445 165 165 166 166 if (fQueue) 167 fQueue->P ostMsg(WM_STARGTPOINT, (void*)str.Data(), str.Length()+1);//, (void*)str.Data(), str.Length()+1);167 fQueue->Proc(WM_STARGTPOINT, (void*)str.Data()); 168 168 169 169 return true; … … 177 177 178 178 if (fQueue) 179 fQueue->P ostMsg(WM_STARGMODE, &on, sizeof(bool));//, (void*)str.Data(), str.Length()+1);179 fQueue->Proc(WM_STARGMODE, &on); 180 180 181 181 return true;
Note:
See TracChangeset
for help on using the changeset viewer.