FACT++  1.0
template<class T , class S >
int StateMachineDrive< T, S >::TrackCelest ( const Planets_t p)
inlineprivate

Definition at line 1981 of file drivectrl.cc.

References Error(), kEJupiter, kEMars, kEMoon, kESaturn, kEVenus, Source::name, PointingSetup::planet, PointingSetup::source, and PointingSetup::wobble_offset.

1982  {
1983  switch (p)
1984  {
1985  case kEMoon: fPointingSetup.source.name = "Moon"; break;
1986  case kEVenus: fPointingSetup.source.name = "Venus"; break;
1987  case kEMars: fPointingSetup.source.name = "Mars"; break;
1988  case kEJupiter: fPointingSetup.source.name = "Jupiter"; break;
1989  case kESaturn: fPointingSetup.source.name = "Saturn"; break;
1990  default:
1991  T::Error("TrackCelest - Celestial object "+to_string(p)+" not yet supported.");
1992  return T::GetCurrentState();
1993  }
1994 
1995  fPointingSetup.planet = p;
1997 
1998  fDrive.UpdateSource(Time(), fPointingSetup.source.name, true);
1999 
2000  return InitTracking();
2001  }
string name
Definition: drivectrl.cc:123
PointingSetup fPointingSetup
Definition: drivectrl.cc:1579
Adds some functionality to boost::posix_time::ptime for our needs.
Definition: Time.h:30
Source source
Definition: drivectrl.cc:151
double wobble_offset
Definition: drivectrl.cc:155
Error()
Definition: HeadersFTM.h:197
Planets_t planet
Definition: drivectrl.cc:152

+ Here is the call graph for this function: