FACT++  1.0
template<class T , class S >
int StateMachineDrive< T, S >::StartTracking ( const Source src,
double  offset,
double  angle,
double  period = 0 
)
inlineprivate

Definition at line 1945 of file drivectrl.cc.

References Source::dec, Error(), kENone, Drive::State::kInvalidCoordinates, Source::name, PointingSetup::orbit_period, period, PointingSetup::planet, Source::ra, PointingSetup::source, PointingSetup::wobble_angle, and PointingSetup::wobble_offset.

1946  {
1947  if (src.ra<0 || src.ra>=24)
1948  {
1949  ostringstream out;
1950  out << "Right ascension out of range [0;24[: Ra=" << src.ra << "h Dec=" << src.dec << "deg";
1951  if (!src.name.empty())
1952  out << " [" << src.name << "]";
1953  T::Error(out);
1955  }
1956  if (src.dec<-90 || src.dec>90)
1957  {
1958  ostringstream out;
1959  out << "Declination out of range [-90;90]: Ra=" << src.ra << "h Dec=" << src.dec << "deg";
1960  if (!src.name.empty())
1961  out << " [" << src.name << "]";
1962  T::Error(out);
1964  }
1965 
1966  ostringstream out;
1967  out << "Tracking Ra=" << src.ra << "h Dec=" << src.dec << "deg";
1968  if (!src.name.empty())
1969  out << " [" << src.name << "]";
1970  T::Info(out);
1971 
1973  fPointingSetup.source = src;
1974  fPointingSetup.orbit_period = period / 1440; // [min->day]
1975  fPointingSetup.wobble_angle = angle * M_PI/180; // [deg->rad]
1976  fPointingSetup.wobble_offset = offset * M_PI/180; // [deg->rad]
1977 
1978  return InitTracking();
1979  }
float period
Definition: HeadersSQM.h:92
string name
Definition: drivectrl.cc:123
PointingSetup fPointingSetup
Definition: drivectrl.cc:1579
double wobble_angle
Definition: drivectrl.cc:156
double dec
Definition: drivectrl.cc:125
Source source
Definition: drivectrl.cc:151
double ra
Definition: drivectrl.cc:124
double wobble_offset
Definition: drivectrl.cc:155
Error()
Definition: HeadersFTM.h:197
Planets_t planet
Definition: drivectrl.cc:152
double orbit_period
Definition: drivectrl.cc:154

+ Here is the call graph for this function: