Ginan
Loading...
Searching...
No Matches
orbexWrite.cpp File Reference

Data Structures

struct  OrbexEntry
 ORBEX entry to write out. More...
 

Functions

void writeOrbexHeader (std::fstream &orbexStream, GTime time, map< E_Sys, bool > &outSys, OrbexFileData &outFileDat)
 Write ORBEX header lines and header blocks including FILE/DESCRIPTION and SATELLITE/ID_AND_DESCRIPTION block.
 
bool writePVCS (std::fstream &orbexStream, OrbexEntry &entry, E_OrbexRecord recType)
 Write PCS or VCS records.
 
bool writePV (std::fstream &orbexStream, OrbexEntry &entry, E_OrbexRecord recType)
 Write POS or VEL records.
 
bool writeClk (std::fstream &orbexStream, OrbexEntry &entry, E_OrbexRecord recType)
 Write CLK or CRT records.
 
bool writeAtt (std::fstream &orbexStream, OrbexEntry &entry, E_OrbexRecord recType)
 Write ATT records.
 
void updateOrbexBody (string &filename, map< int, OrbexEntry > &entryList, GTime time, map< E_Sys, bool > &outSys, OrbexFileData &outFileDat)
 Write EPHEMERIS/DATA block and update END_TIME line.
 
void writeSysSetOrbex (string filename, GTime time, map< E_Sys, bool > &outSys, OrbexFileData &outFileDat, vector< E_Source > orbDataSrcs, vector< E_Source > clkDataSrcs, vector< E_Source > attDataSrcs, KFState *kfState_ptr)
 Retrieve satellite orbits, clocks and attitudes for all included systems and write out to an ORBEX file.
 
void outputOrbex (string filename, GTime time, vector< E_Source > orbDataSrcs, vector< E_Source > clkDataSrcs, vector< E_Source > attDataSrcs, KFState *kfState_ptr)
 Output ORBEX files.
 

Function Documentation

◆ outputOrbex()

void outputOrbex ( string filename,
GTime time,
vector< E_Source > orbDataSrcs,
vector< E_Source > clkDataSrcs,
vector< E_Source > attDataSrcs,
KFState * kfState_ptr )

Output ORBEX files.

Parameters
filenameFile to write to
timeEpoch time (GPST)
orbDataSrcsData source for satellite positions & velocities
clkDataSrcsData source for satellite clocks
attDataSrcsData source for satellite attitudes
kfState_ptrPointer to a kalman filter to take values from
Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateOrbexBody()

void updateOrbexBody ( string & filename,
map< int, OrbexEntry > & entryList,
GTime time,
map< E_Sys, bool > & outSys,
OrbexFileData & outFileDat )

Write EPHEMERIS/DATA block and update END_TIME line.

Parameters
filenameFile path to output file
entryListList of data to print
timeEpoch time (GPST)
outSysSystems to include in file
outFileDatCurrent file editing information
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeAtt()

bool writeAtt ( std::fstream & orbexStream,
OrbexEntry & entry,
E_OrbexRecord recType )

Write ATT records.

Parameters
orbexStreamOutput stream
entryORBEX entry to write out
recTypeRecord type
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeClk()

bool writeClk ( std::fstream & orbexStream,
OrbexEntry & entry,
E_OrbexRecord recType )

Write CLK or CRT records.

Parameters
orbexStreamOutput stream
entryORBEX entry to write out
recTypeRecord type
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeOrbexHeader()

void writeOrbexHeader ( std::fstream & orbexStream,
GTime time,
map< E_Sys, bool > & outSys,
OrbexFileData & outFileDat )

Write ORBEX header lines and header blocks including FILE/DESCRIPTION and SATELLITE/ID_AND_DESCRIPTION block.

Parameters
orbexStreamOutput stream
timeEpoch time (GPST)
outSysSystems to include in file
outFileDatFile editing information for ORBEX writing
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writePV()

bool writePV ( std::fstream & orbexStream,
OrbexEntry & entry,
E_OrbexRecord recType )

Write POS or VEL records.

Parameters
orbexStreamOutput stream
entryORBEX entry to write out
recTypeRecord type
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writePVCS()

bool writePVCS ( std::fstream & orbexStream,
OrbexEntry & entry,
E_OrbexRecord recType )

Write PCS or VCS records.

Parameters
orbexStreamOutput stream
entryORBEX entry to write out
recTypeRecord type
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeSysSetOrbex()

void writeSysSetOrbex ( string filename,
GTime time,
map< E_Sys, bool > & outSys,
OrbexFileData & outFileDat,
vector< E_Source > orbDataSrcs,
vector< E_Source > clkDataSrcs,
vector< E_Source > attDataSrcs,
KFState * kfState_ptr )

Retrieve satellite orbits, clocks and attitudes for all included systems and write out to an ORBEX file.

Parameters
filenameFile path to output file
timeEpoch time (GPST)
outSysSystems to include in file
outFileDatCurrent file editing information
orbDataSrcsData source for satellite positions & velocities
clkDataSrcsData source for satellite clocks
attDataSrcsData source for satellite attitudes
kfState_ptrPointer to a kalman filter to take values from
Here is the call graph for this function:
Here is the caller graph for this function: