Copernicus  1.0
An Arduino module for the Trimble Copernicus GPS receiver
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Groups
Public Member Functions | Public Attributes | Protected Attributes | Friends | List of all members
PosFix Struct Reference

Position fix. More...

#include <gpstype.h>

Public Member Functions

 PosFix ()
 
const LLA_Fix< Float32 > * getLLA_32 () const
 
const LLA_Fix< Float64 > * getLLA_64 () const
 
const XYZ_Fix< Float32 > * getXYZ_32 () const
 
const XYZ_Fix< Float64 > * getXYZ_64 () const
 

Public Attributes

ReportType type
 Format of stored position fix. More...
 
XYZ_Fix< Float32xyz_32
 
XYZ_Fix< Float64xyz_64
 
LLA_Fix< Float32lla_32
 
LLA_Fix< Float64lla_64
 

Protected Attributes

union {
   XYZ_Fix< Float32 >   xyz_32
 
   XYZ_Fix< Float64 >   xyz_64
 
   LLA_Fix< Float32 >   lla_32
 
   LLA_Fix< Float64 >   lla_64
 
}; 
 

Friends

class CopernicusGPS
 

Detailed Description

Position fix.

Depending on the reporting mode of the receiver, this structure may store a report of type RPT_FIX_POS_LLA_32, RPT_FIX_POS_LLA_64, RPT_FIX_POS_XYZ_32, RPT_FIX_POS_XYZ_64, or RPT_NONE. The stored type is indicated by PosFix.type; use one of the four access methods to obtain an object storing the actual position data. Access methods which don't currently correspond to the store type will return NULL.

If the report type is unknown, there is not yet a valid fix and all accessors will return NULL.

For example:

 const PosFix &fix = gps.GetPositionFix();
 if (fix.type == RPT_FIX_POS_LLA_32) {
     LLA_Fix<Float32> fixdata = fix.getLLA_32();
     // ...
 } else if (fix.type == RPT_FIX_POS_XYZ_32) {
     XYZ_FIX<Float32> fixdata = fix.getXYZ_32();
     // ...
 } // etc.

Constructor & Destructor Documentation

PosFix::PosFix ( )

Member Function Documentation

const LLA_Fix< Float32 > * PosFix::getLLA_32 ( ) const
const LLA_Fix< Float64 > * PosFix::getLLA_64 ( ) const
const XYZ_Fix< Float32 > * PosFix::getXYZ_32 ( ) const
const XYZ_Fix< Float64 > * PosFix::getXYZ_64 ( ) const

Friends And Related Function Documentation

friend class CopernicusGPS
friend

Member Data Documentation

union { ... }
LLA_Fix<Float32> PosFix::lla_32
LLA_Fix<Float64> PosFix::lla_64
ReportType PosFix::type

Format of stored position fix.

XYZ_Fix<Float32> PosFix::xyz_32
XYZ_Fix<Float64> PosFix::xyz_64

The documentation for this struct was generated from the following files: