Boyoon Jung's Library Manual

QGps Class Reference
[Visualization Toolkit]

A Qt widget to display GPS device data. More...

#include <qgps.h>

Inherits QGpsUI.

Inheritance diagram for QGps:

Inheritance graph
[legend]
Collaboration diagram for QGps:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 QGps (bj::GPS *gps=0, QWidget *parent=0, const char *name=0, WFlags f=0)
 A constructor.
 ~QGps (void)
 A destructor.
void setGPS (bj::GPS *gps)
 Set the GPS device.
bj::GPS * getGPS (void)
 Return the current GPS device.

Protected Member Functions

virtual void run (void)
 Retrieve the GPS info from the device.
void updateGGA (void)
 Update the position page.
void updateGSA (void)
 Update the satellites page (active-satellite info only).
void updateGSV (void)
 Update the satellites page (satellite-in-view info only).
void updatePGRME (void)
 Update the garmin page (estimated errors only).
void updatePGRMV (void)
 Update the garmin page (3D velocity only).
bool isActive (int prn)
 Check if a PRN is active or not.
char * lat2str (double l, char str[])
 Convert a latitude to a string.
char * long2str (double l, char str[])
 Convert a longitude to a string.

Protected Attributes

bj::GPS * gps
 GPS device.
int aprns [12]
 Active PRNs.
char buffer [MAX_RTCM]
 Message buffer.
QPixmap led_red
 Red LED image.
QPixmap led_green
 Green LED image.
QPixmap led_blue
 Blue LED image.

Detailed Description

A Qt widget to display GPS device data.

QGps class is a Qt widget to display GPS device data. As an implementation issue, GPGSA message should be followed by GPGSV message.


Constructor & Destructor Documentation

QGps::QGps (  bj::GPS *  gps = 0,
QWidget *  parent = 0,
const char *  name = 0,
WFlags  f = 0
) 
 

A constructor.

QGps::~QGps (  void   ) 
 

A destructor.


Member Function Documentation

bj::GPS* QGps::getGPS (  void   )  [inline]
 

Return the current GPS device.

bool QGps::isActive (  int  prn  )  [inline, protected]
 

Check if a PRN is active or not.

char * QGps::lat2str (  double  l,
char  str[]
)  [inline, protected]
 

Convert a latitude to a string.

char * QGps::long2str (  double  l,
char  str[]
)  [inline, protected]
 

Convert a longitude to a string.

virtual void QGps::run (  void   )  [protected, virtual]
 

Retrieve the GPS info from the device.

void QGps::setGPS (  bj::GPS *  gps  ) 
 

Set the GPS device.

void QGps::updateGGA (  void   )  [protected]
 

Update the position page.

void QGps::updateGSA (  void   )  [protected]
 

Update the satellites page (active-satellite info only).

void QGps::updateGSV (  void   )  [protected]
 

Update the satellites page (satellite-in-view info only).

void QGps::updatePGRME (  void   )  [protected]
 

Update the garmin page (estimated errors only).

void QGps::updatePGRMV (  void   )  [protected]
 

Update the garmin page (3D velocity only).


Member Data Documentation

int QGps::aprns[12] [protected]
 

Active PRNs.

char QGps::buffer[MAX_RTCM] [protected]
 

Message buffer.

bj::GPS* QGps::gps [protected]
 

GPS device.

QPixmap QGps::led_blue [protected]
 

Blue LED image.

QPixmap QGps::led_green [protected]
 

Green LED image.

QPixmap QGps::led_red [protected]
 

Red LED image.


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

Tools
BjLib Manual
Player/Stage
PyPlayer
MicroStrain IMU
GPS/DGPS
Particle Filter

Personal
Welcome
Curriculum Vitae
Resume
Contact

Outside Links
USC
USC CS Dept
CRES
Robotics Lab
RESL