Changeset 16763 for trunk/Cosy


Ignore:
Timestamp:
06/07/13 23:25:38 (11 years ago)
Author:
tbretz
Message:
Adapted the status setting to the IsPositioning information from the PDO3 for FACT; for FACT do not write communication to file.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cosy/main/MCosy.cc

    r12591 r16763  
    3232//#define EXPERT
    3333#undef EXPERT
     34#define FACT
    3435
    3536/*
     
    882883    armed &= fMac2 && fMac2->IsArmed();
    883884
     885#ifndef FACT  // FIXME: Maybe this is also correct for magic?
    884886    if (fMac1 && fMac2)
    885887    {
     
    890892            SetStatus(MDriveCom::kTracking);
    891893    }
     894#else
     895    if (fMac1 && fMac2)
     896    {
     897        // Handle remote control introduced state changed
     898        // FIXME: Use a bit in the PD3 to signal remote control operation!
     899        if (fStatus==MDriveCom::kStopped && (fMac1->IsPositioning() || fMac2->IsPositioning()))
     900            SetStatus(MDriveCom::kMoving);
     901        if (fStatus==MDriveCom::kMoving  && !fMac1->IsPositioning() && !fMac2->IsPositioning())
     902            SetStatus(MDriveCom::kStopped);
     903    }
     904#endif
    892905
    893906    if (HasError())
     
    10621075
    10631076    fCom = com;//new MDriveCom(this, addr, tx, rx, fOutRep);
     1077#ifndef FACT
    10641078    fCom->SetOutRep(fOutRep);
     1079#endif
    10651080    //    fCom->Start();
    10661081}
Note: See TracChangeset for help on using the changeset viewer.