FACT++  1.0
void ConnectionGPS::Request ( bool  immediate = false)
inline

Definition at line 300 of file gpsctrl.cc.

References HandleRequest(), and Time::Mjd().

301  {
302  double mjd = Time().Mjd();
303 
304  if (!immediate)
305  mjd = (ceil(mjd*24*60+0.01)+0.5)/(24*60);
306 
307  fKeepAlive.expires_at(Time(mjd));
308  fKeepAlive.async_wait(boost::bind(&ConnectionGPS::HandleRequest,
309  this, dummy::error));
310  }
Adds some functionality to boost::posix_time::ptime for our needs.
Definition: Time.h:30
void Mjd(double mjd)
Definition: Time.cc:145
void HandleRequest(const bs::error_code &error)
Definition: gpsctrl.cc:241
boost::asio::deadline_timer fKeepAlive
Definition: gpsctrl.cc:239

+ Here is the call graph for this function: