- Timestamp:
- 08/01/16 10:30:59 (8 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/HeadersDrive.h
r18358 r18530 24 24 kPositioningFailed = /*StateMachineImp::kSM_Error*/0x100+1, 25 25 kAllowedRangeExceeded, 26 //kInvalidCoordinates,26 kInvalidCoordinates, 27 27 //kSpeedLimitExceeded, 28 28 }; -
trunk/FACT++/src/drivectrl.cc
r18431 r18530 1943 1943 int StartTracking(const Source &src, double offset, double angle, double period=0) 1944 1944 { 1945 if (src.ra<0 || src.ra>=24) 1946 { 1947 ostringstream out; 1948 out << "Right ascension out of range [0;24[: Ra=" << src.ra << "h Dec=" << src.dec << "deg"; 1949 if (!src.name.empty()) 1950 out << " [" << src.name << "]"; 1951 T::Error(out); 1952 return State::kInvalidCoordinates; 1953 } 1954 if (src.dec<-90 || src.dec>90) 1955 { 1956 ostringstream out; 1957 out << "Declination out of range [-90;90]: Ra=" << src.ra << "h Dec=" << src.dec << "deg"; 1958 if (!src.name.empty()) 1959 out << " [" << src.name << "]"; 1960 T::Error(out); 1961 return State::kInvalidCoordinates; 1962 } 1963 1945 1964 ostringstream out; 1946 1965 out << "Tracking Ra=" << src.ra << "h Dec=" << src.dec << "deg"; … … 2704 2723 T::AddStateName(State::kAllowedRangeExceeded, "OutOfRange", 2705 2724 "Telecope went out of range during tracking"); 2725 T::AddStateName(State::kInvalidCoordinates, "InvalidCoordinates", 2726 "Tracking coordinates out of range"); 2706 2727 2707 2728
Note:
See TracChangeset
for help on using the changeset viewer.