Changeset 9445 for trunk/MagicSoft/Cosy


Ignore:
Timestamp:
05/12/09 00:33:30 (15 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Cosy
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Cosy/Changelog

    r9443 r9445  
    11                                                                  -*-*- 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
    217
    318 2009/05/11 Thomas Bretz (La Palma)
  • trunk/MagicSoft/Cosy/main/MStarguider.cc

    r9439 r9445  
    13601360    Int_t cnt=0;
    13611361
    1362     MStar *star;
     1362    MStar *star=0;
    13631363    MStarListIter NextStar(&stars);
    13641364    while ((star=NextStar()) && cnt<num+5)
     
    13791379            x.AddAt(dpos.X(), idx);
    13801380            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/*
    13831384#ifdef EXPERT
    13841385            if (fout)
     
    13931394            }
    13941395#endif
     1396*/
    13951397        }
    13961398        cnt++;
     
    14161418
    14171419    // Check StargTPoint data set request
    1418     if (!fDisplay->IsEntryChecked(IDM_kStarguiderMode) || !fTPoint->IsDown())
     1420    if (!fMode->IsEntryChecked(IDM_kStarguiderMode) || !fTPoint->IsDown())
    14191421        return numcor;
    14201422    fTPoint->SetDown(kFALSE);
     
    14651467    *fOutStargTp << " " << setprecision(11) << t.GetMjd();
    14661468    *fOutStargTp << " " << setprecision(4) << center.GetMag();
    1467     *fOutStargTp << " " << star->GetMag();
     1469    *fOutStargTp << " 0";// << star->GetMag();
    14681470    *fOutStargTp << " " << center.GetX() << " " << center.GetY();
    14691471    *fOutStargTp << " 0 0";
    14701472    *fOutStargTp << " " << numleds << " " << numrings;
    14711473    *fOutStargTp << " " << num << " " << numcor << " " << bright;
     1474    *fOutStargTp << " " << fTPointStarMag << " " << fTPointStarName;
    14721475    *fOutStargTp << endl;
    14731476
     
    15451548
    15461549    // Check TPoint data set request
    1547     if (!fDisplay->IsEntryChecked(IDM_kTpointMode) || !fTPoint->IsDown())
     1550    if (!fMode->IsEntryChecked(IDM_kTpointMode) || !fTPoint->IsDown())
    15481551        return;
    15491552
     
    16001603    *fOutTp << " " << numleds << " " << numrings;
    16011604    *fOutTp << " 0 0 0";
     1605    *fOutTp << " " << fTPointStarMag << " " << fTPointStarName;
    16021606    *fOutTp << endl;
    16031607
     
    17441748        fNumStarsDetected = 0;
    17451749
    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++;
    17511759
    17521760    case 2:
     
    17911799        fMode->UnCheckEntry(IDM_kTpointMode);
    17921800        ProcessMessage(MK_MSG(kC_COMMAND, kCM_MENU), IDM_kTpointMode, 0);
    1793         break;
     1801        fTPointFromCC = -1;
     1802        return kFALSE;
    17941803    }
    17951804
    17961805    // Send report
    1797     fTPointFromCC = -1;
    17981806/*
    17991807    if (!fCosy)
  • trunk/MagicSoft/Cosy/tcpip/MDriveCom.cc

    r9439 r9445  
    165165
    166166    if (fQueue)
    167         fQueue->PostMsg(WM_STARGTPOINT, (void*)str.Data(), str.Length()+1);//, (void*)str.Data(), str.Length()+1);
     167        fQueue->Proc(WM_STARGTPOINT, (void*)str.Data());
    168168
    169169    return true;
     
    177177
    178178    if (fQueue)
    179         fQueue->PostMsg(WM_STARGMODE, &on, sizeof(bool));//, (void*)str.Data(), str.Length()+1);
     179        fQueue->Proc(WM_STARGMODE, &on);
    180180
    181181    return true;
Note: See TracChangeset for help on using the changeset viewer.