#include <ComputeLinear.hpp>
Inheritance diagram for ComputeLinear:


This class is meant to be used with the GNSS data structures (GDS) objects found in "DataStructures" class, and it is intended to be used as a more flexible replacement for classes such as ComputePC.hpp.
A typical way to use this class follows:
// Define a linear combination to compute PC using C1 gnssLinearCombination pcComb; pcComb.header = TypeID::PC; pcComb.body[TypeID::C1] = +GAMMA_GPS/0.646944444; pcComb.body[TypeID::P2] = -1.0/0.646944444; // Define another linear combination to compute PC prefit // residual gnssLinearCombination prefitComb; prefitComb.header = TypeID::prefitC; prefitComb.body[TypeID::PC] = +1.0; prefitComb.body[TypeID::rho] = -1.0; prefitComb.body[TypeID::dtSat] = +1.0; prefitComb.body[TypeID::rel] = -1.0; prefitComb.body[TypeID::tropoSlant] = -1.0; // Object to compute linear combinations of data // Linear combinations will be computed in a FIFO basis ComputeLinear linear; linear.addLinear(pcComb); linear.addLinear(prefitComb); // Load observation data RinexObsStream rin("ebre0300.02o"); // Loads precise ephemeris object with file data SP3EphemerisStore SP3EphList; SP3EphList.loadFile("igs11513.sp3"); // Sets nominal position of receiver Position nominalPos(4833520.3800, 41536.8300, 4147461.2800); // Declare a MOPSTropModel object, setting the defaults MOPSTropModel mopsTM( nominalPos.getAltitude(), nominalPos.getGeodeticLatitude(), 30); // Object to compute the tropospheric data ComputeTropModel computeTropo(mopsTM); // Declare a basic modeler BasicModel basic(nominalPos, SP3EphList); gnssRinex gRin; while(rin >> gRin) { gRin >> basic >> computeTropo >> linear; // Dump results gRin.body.dump(cout,1); }
The "ComputeLinear" object will visit every satellite in the GNSS data structure that is "gRin" and will compute the previously defined linear combination (or combinations).
When used with the ">>" operator, this class returns the same incoming data structure with the results inserted in it. Be warned that if a given satellite does not have the observations or data required by the linear combination definition, such data will be taken as zero.
Definition at line 131 of file ComputeLinear.hpp.
Public Member Functions | |
| ComputeLinear () | |
| Default constructor. | |
| ComputeLinear (const gnssLinearCombination &linearComb) | |
| Common constructor. | |
| ComputeLinear (const LinearCombList &list) | |
| Common constructor. | |
| virtual satTypeValueMap & | Process (const DayTime &time, satTypeValueMap &gData) throw (ProcessingException) |
| Returns a satTypeValueMap object, adding the new data generated when calling this object. | |
| virtual gnssSatTypeValue & | Process (gnssSatTypeValue &gData) throw (ProcessingException) |
| Returns a gnnsSatTypeValue object, adding the new data generated when calling this object. | |
| virtual gnssRinex & | Process (gnssRinex &gData) throw (ProcessingException) |
| Returns a gnnsRinex object, adding the new data generated when calling this object. | |
| virtual LinearCombList | getLinearCombinations (void) const |
| Returns the list of linear combinations to be computed. | |
| virtual ComputeLinear & | clearAll (void) |
| Clear all linear combinations. | |
| virtual ComputeLinear & | setLinearCombination (const gnssLinearCombination &linear) |
| Sets a linear combinations to be computed. | |
| virtual ComputeLinear & | setLinearCombination (const LinearCombList &list) |
| Sets the list of linear combinations to be computed. | |
| virtual ComputeLinear & | addLinear (const gnssLinearCombination &linear) |
| Add a linear combination to be computed. | |
| virtual int | getIndex (void) const |
| Returns an index identifying this object. | |
| virtual std::string | getClassName (void) const |
| Returns a string identifying this object. | |
| virtual | ~ComputeLinear () |
| Destructor. | |
|
|
Default constructor.
Definition at line 136 of file ComputeLinear.hpp. |
|
|
Common constructor.
Definition at line 144 of file ComputeLinear.hpp. |
|
|
Common constructor.
Definition at line 152 of file ComputeLinear.hpp. |
|
|
Destructor.
Definition at line 236 of file ComputeLinear.hpp. |
|
|
Add a linear combination to be computed.
Definition at line 223 of file ComputeLinear.hpp. |
|
|
Clear all linear combinations.
Definition at line 194 of file ComputeLinear.hpp. |
|
|
Returns a string identifying this object.
Implements ProcessingClass. Definition at line 47 of file ComputeLinear.cpp. |
|
|
Returns an index identifying this object.
Implements ProcessingClass. Definition at line 42 of file ComputeLinear.cpp. |
|
|
Returns the list of linear combinations to be computed.
Definition at line 189 of file ComputeLinear.hpp. References gpstk::LinearCombList. |
|
|
Returns a gnnsRinex object, adding the new data generated when calling this object.
Implements ProcessingClass. Definition at line 183 of file ComputeLinear.hpp. |
|
|
Returns a gnnsSatTypeValue object, adding the new data generated when calling this object.
Implements ProcessingClass. Definition at line 173 of file ComputeLinear.hpp. |
|
||||||||||||
|
Returns a satTypeValueMap object, adding the new data generated when calling this object.
Definition at line 58 of file ComputeLinear.cpp. References GPSTK_THROW. |
|
|
Sets the list of linear combinations to be computed.
Definition at line 215 of file ComputeLinear.hpp. |
|
|
Sets a linear combinations to be computed.
Definition at line 204 of file ComputeLinear.hpp. |
1.3.9.1