FACT++  1.0
static string Moon::Color ( double  angle)
inlinestatic

Definition at line 425 of file smartfact.cc.

References HTML::kGreen, HTML::kRed, and HTML::kYellow.

Referenced by StateMachineSmartFACT::HandleDriveTracking(), and StateMachineSmartFACT::UpdateAstronomy().

426  {
427  if (angle<10 || angle>150)
428  return HTML::kRed;
429  if (angle<20 || angle>140)
430  return HTML::kYellow;
431  return HTML::kGreen;
432  }
static const string kYellow
Definition: smartfact.cc:75
static const string kGreen
Definition: smartfact.cc:77
static const string kRed
Definition: smartfact.cc:76

+ Here is the caller graph for this function: