nidas v1.2.3
Public Member Functions | Static Public Member Functions | Private Attributes | Static Private Attributes | List of all members
GPS_SetClock Class Reference

Public Member Functions

 GPS_SetClock ()
 
int parseRunstring (int argc, char **argv)
 
int run ()
 

Static Public Member Functions

static int usage (const char *argv0)
 
static const char * skipcommas (const char *cp, int ncomma)
 
static void setSysTime (const n_u::UTime &tgps) throw (n_u::IOException)
 

Private Attributes

string device
 
int dataTimeout
 
int lockTimeout
 
int baudRate
 
int gpsOffsetUsecs
 

Static Private Attributes

static int dataTimeoutDefault = 30
 
static int lockTimeoutDefault = 600
 
static int clockDiffMaxSeconds = CLOCK_DIFF_MAX_DEFAULT
 If the difference between the GPS and system clock is more than this, set the system clock from the GPS.
 

Constructor & Destructor Documentation

◆ GPS_SetClock()

GPS_SetClock::GPS_SetClock ( )

Member Function Documentation

◆ parseRunstring()

int GPS_SetClock::parseRunstring ( int argc,
char ** argv )

◆ run()

int GPS_SetClock::run ( )

◆ setSysTime()

void GPS_SetClock::setSysTime ( const n_u::UTime & tgps)
throw (n_u::IOException )
static

◆ skipcommas()

const char * GPS_SetClock::skipcommas ( const char * cp,
int ncomma )
static

Referenced by run().

◆ usage()

int GPS_SetClock::usage ( const char * argv0)
static

Member Data Documentation

◆ baudRate

int GPS_SetClock::baudRate
private

Referenced by parseRunstring(), and run().

◆ clockDiffMaxSeconds

int GPS_SetClock::clockDiffMaxSeconds = CLOCK_DIFF_MAX_DEFAULT
staticprivate

If the difference between the GPS and system clock is more than this, set the system clock from the GPS.

Referenced by parseRunstring(), and run().

◆ dataTimeout

int GPS_SetClock::dataTimeout
private

Referenced by parseRunstring(), and run().

◆ dataTimeoutDefault

int GPS_SetClock::dataTimeoutDefault = 30
staticprivate

Referenced by usage().

◆ device

string GPS_SetClock::device
private

Referenced by parseRunstring(), and run().

◆ gpsOffsetUsecs

int GPS_SetClock::gpsOffsetUsecs
private

Referenced by parseRunstring(), and run().

◆ lockTimeout

int GPS_SetClock::lockTimeout
private

Referenced by parseRunstring(), and run().

◆ lockTimeoutDefault

int GPS_SetClock::lockTimeoutDefault = 600
staticprivate

Referenced by usage().


The documentation for this class was generated from the following file: