Skip to content
This repository has been archived by the owner on May 29, 2022. It is now read-only.

Commit

Permalink
Merge branch 'issue_347_Galileo_Antex_Offsets' into 'master'
Browse files Browse the repository at this point in the history
Adding Galileo antenna capbility

See merge request !272
  • Loading branch information
Bryan Parsons committed Jun 21, 2018
2 parents 39007e5 + 9d4e9c3 commit c468542
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
14 changes: 12 additions & 2 deletions ext/lib/Geomatics/AntennaStore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ namespace gpstk
fact1 = 2.5458; // (alpha+1)/alpha
fact2 = -1.5458; // -1/alpha
freq1 = "G01";
freq2 = "G01";
freq2 = "G02";
break;
}
case 'R':
Expand All @@ -321,6 +321,16 @@ namespace gpstk
break;
}

case 'E':
{
double alpha = ((154*154) / (116.5*116.5)) -1.0; // E1 and E5a
fact1 = (alpha+1.0) / alpha;
fact2 = -1.0 / alpha;
freq1 = "E01";
freq2 = "E05";
break;
}

default:
{
stringstream ss;
Expand Down Expand Up @@ -382,7 +392,7 @@ namespace gpstk
switch (sidr.system)
{
case SatID::systemGPS: {sys='G'; break;}
//case systemGalileo: {sys='E'; break;} Not yet implemented
case SatID::systemGalileo: {sys='E'; break;}
case SatID::systemGlonass: {sys='R'; break;}
case SatID::systemBeiDou: {sys='C'; break;}
default:
Expand Down
8 changes: 6 additions & 2 deletions ext/lib/Geomatics/AntexData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ namespace gpstk

// NB. this dimension must be updated with the list
/// Number of types that are used for satellites
const int Nsattype=14;
const int Nsattype=18;
string sattype[Nsattype] =
{
string("BLOCK I"), // 1
Expand All @@ -89,7 +89,11 @@ namespace gpstk
string("GLONASS-K1"), // 11
string("BEIDOU-2G"), // 12
string("BEIDOU-2I"), // 13
string("BEIDOU-2M") // 14
string("BEIDOU-2M"), // 14
string("GALILEO-1"), // 15
string("GALILEO-2"), // 16
string("GALILEO-0A"), // 17
string("GALILEO-0B") // 18
};
/// vector of type strings that identify satellites; must be kept updated.
const vector<string> AntexData::SatelliteTypes(sattype,sattype+Nsattype);
Expand Down

0 comments on commit c468542

Please sign in to comment.