UHD  003.001.002
Public Types | Public Member Functions | Static Public Member Functions | List of all members
gps_ctrl Class Referenceabstract

#include <gps_ctrl.hpp>

Inheritance diagram for gps_ctrl:

Public Types

typedef boost::shared_ptr< gps_ctrlsptr
 

Public Member Functions

virtual ptime get_time (void)=0
 
virtual time_t get_epoch_time (void)=0
 
virtual bool gps_detected (void)=0
 

Static Public Member Functions

static sptr make (gps_send_fn_t, gps_recv_fn_t)
 

Member Typedef Documentation

◆ sptr

typedef boost::shared_ptr<gps_ctrl> gps_ctrl::sptr

Member Function Documentation

◆ get_epoch_time()

virtual time_t gps_ctrl::get_epoch_time ( void  )
pure virtual

Get the epoch time (as time_t, which is int)

Returns
current GPS time and date as time_t

◆ get_time()

virtual ptime gps_ctrl::get_time ( void  )
pure virtual

Get the current GPS time and date

Returns
current GPS time and date as boost::posix_time::ptime object

◆ gps_detected()

virtual bool gps_ctrl::gps_detected ( void  )
pure virtual

Tell you if there's a supported GPS connected or not

Returns
true if a supported GPS is connected

◆ make()

static sptr gps_ctrl::make ( gps_send_fn_t  ,
gps_recv_fn_t   
)
static

Make a GPS config for Jackson Labs or generic NMEA GPS devices


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