BicamGPS Class Reference

#include <Bicam.h>

List of all members.


Detailed Description

BicamGPS synthesizes NMEA GPS strings and uses the XPort serial port to send the GPS strings to the camera's GPS input port.

BicamTrigger triggers an image capture via the Lantronix XPort. Camera trigger is connected to XPort GPIO pins. BicamTrigger uses an XPort object to activate and deactivate the GPIO pins.

See also:
XPort

BicamTrigger

NMEA


Public Member Functions

 BicamGPS ()
 Default no argument constructor.
 BicamGPS (XPort *pXPort)
 Initializing constructor.
 BicamGPS (char *host, int serialIPPort)
 Initializing constructor.
 ~BicamGPS ()
 Default destructor.
int configure (XPort *pXPort)
 Configure XPort parameters.
GPGGAgetGPGGA ()
 
Returns:
GPGGA member variable

GPRMCgetGPRMC ()
 
Returns:
GPRMC member variable

XPortgetXPort ()
 
Returns:
XPort member variable

void setXPort (XPort *xp)
 Set XPort member variable.
XPortconnect (char *host, int serialIPPort)
 Establish XPort socket connections for serial communications.
int initialize ()
 Initialize BicamGPS member variables.
int writeNMEA ()
 Write NMEA GPGGA and GPRMC messages to XPort serial port.
int update (time_t timaVal, double lat, double lon, double alt)
 Update lat, lon , alt, and time for NMEA messages.
double getLat ()
 
Returns:
latitude member variable

double getLon ()
 
Returns:
longitude member variable

double getAlt ()
 
Returns:
altitude member variable


Protected Member Functions

int initNMEA ()
 Initialize NMEA fields.
int degrees (double value)
 
Returns:
degree portion of value specified in decimal degrees

double decimalMinutes (double value)
 
Returns:
decimal minutes portion of value specified in decimal degrees


Protected Attributes

XPortxport
 Lantronix XPort single port terminal server w/ GPIO.
GPGGA gpgga
 GPGGA NMEA message.
GPRMC gprmc
 GPRMC NMEA message.
double latitude
 current latitude (decimal degrees)
double longitude
 current longitude (decimal degrees)
double altitude
 current alttitude (m)
boolean initialized
 Indicates whether the NMEA messages are initialized.

Constructor & Destructor Documentation

BicamGPS::BicamGPS ( XPort pXPort  ) 

Initializing constructor.

Parameters:
pXPort XPort to use

BicamGPS::BicamGPS ( char *  host,
int  serialIPPort 
)

Initializing constructor.

Parameters:
host XPort host name/address
serialIPPort XPort TCP/IP port to use for serial I/O


Member Function Documentation

int BicamGPS::initNMEA (  )  [protected]

Initialize NMEA fields.

BicamGPS sends GPGGA and GPRMC messages.

int BicamGPS::degrees ( double  value  )  [protected]

Returns:
degree portion of value specified in decimal degrees

Parameters:
value decimal degrees

double BicamGPS::decimalMinutes ( double  value  )  [protected]

Returns:
decimal minutes portion of value specified in decimal degrees

Parameters:
value decimal degrees

int BicamGPS::configure ( XPort pXPort  ) 

Configure XPort parameters.

Parameters:
pXPort XPort to use

void BicamGPS::setXPort ( XPort xp  ) 

Set XPort member variable.

Parameters:
xp Pointer to XPort

XPort * BicamGPS::connect ( char *  host,
int  serialIPPort 
)

Establish XPort socket connections for serial communications.

Parameters:
host XPort host name/address
serialIPPort XPort TCP/IP port to use for serial I/O

int BicamGPS::writeNMEA (  ) 

Write NMEA GPGGA and GPRMC messages to XPort serial port.

XPort should be configured and connected. NMEA messages should be initialized and/or updated.

int BicamGPS::update ( time_t  timeVal,
double  lat,
double  lon,
double  alt 
)

Update lat, lon , alt, and time for NMEA messages.

Parameters:
timeVal timestamp to use for NMEA messages.
lat latitude in decimal degrees
lon longitude in decimal degrees
alt altitude in meters


Member Data Documentation

GPGGA BicamGPS::gpgga [protected]

GPGGA NMEA message.

See also:
GPGGA

GPRMC BicamGPS::gprmc [protected]

GPRMC NMEA message.

See also:
GPRMC


The documentation for this class was generated from the following files:
Generated on Tue Jul 15 13:10:22 2008 for Benthic Imaging AUV by  doxygen 1.5.4