Changeset 18117 for trunk


Ignore:
Timestamp:
02/12/15 11:08:01 (10 years ago)
Author:
tbretz
Message:
Even if the state was OnTrack it could happen that the fDevCount was reset because not the state but errornously a random double was compared. Removed an obsolete structure.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/drivectrl.cc

    r17417 r18117  
    389389            fState = State::kTracking;
    390390
    391         if (fState!=State::kTracking && avgdev!=State::kOnTrack)
     391        if (fState!=State::kTracking && fState!=State::kOnTrack)
    392392            fDevCount = 0;
    393393
     
    781781// ------------------------------------------------------------------------
    782782
    783 struct Source
    784 {
    785     Source() : ra(0), dec(0), offset(0)
    786     {
    787         angle[0] = -90;
    788         angle[1] =  90;
    789     }
    790 
    791     double ra;
    792     double dec;
    793     double offset;
    794     array<double, 2> angle;
    795 };
    796 
    797 
    798783template <class T, class S>
    799784class StateMachineDrive : public StateMachineAsio<T>
Note: See TracChangeset for help on using the changeset viewer.