FACT++  1.0
bool ConnectionDrive::ProcessStargReport ( const string &  line)
inline

Definition at line 139 of file cosyctrl.cc.

References data.

140  {
141  istringstream stream(line);
142 
143  // 0: Error
144  // 1: Standby
145  // 2: Monitoring
146  uint16_t status1;
147  stream >> status1;
148  /*const Time t1 = */ReadTime(stream);
149 
150  uint16_t status2;
151  stream >> status2;
152  /*const Time t2 = */ReadTime(stream);
153 
154  double misszd, missaz;
155  stream >> misszd >> missaz;
156 
157  const double zd = ReadAngle(stream);
158  const double az = ReadAngle(stream);
159 
160  double cx, cy;
161  stream >> cx >> cy;
162 
163  int ncor;
164  stream >> ncor;
165 
166  double bright, mjd;
167  stream >> bright >> mjd;
168 
169  int nled, nring, nstars;
170  stream >> nled >> nring >> nstars;
171 
172  if (stream.fail())
173  return false;
174 
175  DimStarguider data;
176 
177  data.fMissZd = misszd;
178  data.fMissAz = missaz;
179  data.fNominalZd = zd;
180  data.fNominalAz = az;
181  data.fCenterX = cx;
182  data.fCenterY = cy;
183  data.fNumCorrelated = ncor;
184  data.fBrightness = bright;
185  data.fNumLeds = nled;
186  data.fNumRings = nring;
187  data.fNumStars = nstars;
188 
189  UpdateStarguider(Time(mjd), data);
190 
191  return true;
192  }
virtual void UpdateStarguider(const Time &, const DimStarguider &)
Definition: cosyctrl.cc:71
Adds some functionality to boost::posix_time::ptime for our needs.
Definition: Time.h:30
static double ReadAngle(istream &in)
Definition: cosyctrl.cc:101
static Time ReadTime(istream &in)
Definition: cosyctrl.cc:93
float data[4 *1440]