// -*- C++ -*- // // $Id: GPSDecoder.h,v 1.1.1.1 2006/01/11 09:34:31 mervart Exp $ // 2005/04/11: include 'int iPCode' into class 'GPSDecoder' (BKG) #if !defined(__GPSDecoder_h__) #define __GPSDecoder_h__ #include #include using namespace std; #include "format.h" // // One Code/Phase - Measurement // struct Observation { Observation() :SVPRN(0) ,GPSWeek(0) ,GPSWeeks(0) ,sec(0.) ,C1(0.) ,P2(0.) ,L1(0.) ,L2(0.) ,SNR1(0) ,SNR2(0) ,pCodeIndicator(0) ,cumuLossOfCont(0) {StatID[0] = '\0';} Observation( char _statID ,char _svprn ,short _GPSWeek ,int _GPSWeeks ,double _sec ,double _C1 ,double _P2 ,double _L1 ,double _L2 ,short _SNR1 ,short _SNR2 ,int _pCodeIndicator ,u_int _cumuLossOfCont) :SVPRN(_svprn) ,GPSWeek(_GPSWeek) ,GPSWeeks(_GPSWeeks) ,sec(_sec) ,C1(_C1) ,P2(_P2) ,L1(_L1) ,L2(_L2) ,SNR1(_SNR1) ,SNR2(_SNR2) ,pCodeIndicator(_pCodeIndicator) ,cumuLossOfCont(_cumuLossOfCont) {StatID[0] = _statID; StatID[1] = '\0';} char StatID[5+1]; //< Station ID char SVPRN; //< Satellite PRN short GPSWeek; //< Week of GPS-Time int GPSWeeks; //< Second of Week (GPS-Time> double sec; double C1; //< CA-code validated raw pseudorange (meters) double P2; //< P2-code validated raw pseudorange (meters) double L1; //< validated raw carrier phase (meters) double L2; //< validated raw carrier phase (meters) short SNR1; //< signal-to noise ration (0.1 dB) short SNR2; //< signal-to noise ration (0.1 dB) int pCodeIndicator; // 0 ... CA Code, 1 ... P Code u_int cumuLossOfCont; // 0 to 31 // Operator to write ascii formatted members of Observation to an outstream friend ostream& operator<<(ostream& os, const Observation & o) { os < ObsList_t; typedef list EphList_t; ObsList_t m_lObsList; EphList_t m_lEphList; } ; #endif