mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-20 22:17:03 +00:00
Updating the list of available satellites
and keeping the list in a single place
This commit is contained in:
parent
ae8eaee724
commit
d0ddc6e923
@ -282,3 +282,4 @@ void Galileo_Ephemeris::satellitePosition(double transmitTime)
|
|||||||
d_satvel_Y = Omega_dot * (cos(u) * r * cos(Omega) - sin(u) * r * cos(i) * sin(Omega)) + d_satpos_X * sin(Omega) + d_satpos_Y * cos(i) * cos(Omega);
|
d_satvel_Y = Omega_dot * (cos(u) * r * cos(Omega) - sin(u) * r * cos(i) * sin(Omega)) + d_satpos_X * sin(Omega) + d_satpos_Y * cos(i) * cos(Omega);
|
||||||
d_satvel_Z = d_satpos_Y * sin(i);
|
d_satvel_Z = d_satpos_Y * sin(i);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -261,7 +261,7 @@ std::string Gnss_Satellite::what_block(const std::string& system_, unsigned int
|
|||||||
block_ = std::string("IIF"); //Plane E
|
block_ = std::string("IIF"); //Plane E
|
||||||
break;
|
break;
|
||||||
case 4 :
|
case 4 :
|
||||||
block_ = std::string("IIA"); //Plane D
|
block_ = std::string("Unknown");
|
||||||
break;
|
break;
|
||||||
case 5 :
|
case 5 :
|
||||||
block_ = std::string("IIR-M"); //Plane E
|
block_ = std::string("IIR-M"); //Plane E
|
||||||
@ -273,13 +273,13 @@ std::string Gnss_Satellite::what_block(const std::string& system_, unsigned int
|
|||||||
block_ = std::string("IIR-M"); //Plane A
|
block_ = std::string("IIR-M"); //Plane A
|
||||||
break;
|
break;
|
||||||
case 8 :
|
case 8 :
|
||||||
block_ = std::string("IIA*"); // Decommissed
|
block_ = std::string("IIF"); //Plane C
|
||||||
break;
|
break;
|
||||||
case 9 :
|
case 9 :
|
||||||
block_ = std::string("IIF"); //Plane F
|
block_ = std::string("IIF"); //Plane F
|
||||||
break;
|
break;
|
||||||
case 10 :
|
case 10 :
|
||||||
block_ = std::string("IIA"); //Plane E
|
block_ = std::string("IIF"); //Plane E
|
||||||
break;
|
break;
|
||||||
case 11 :
|
case 11 :
|
||||||
block_ = std::string("IIR"); //Plane D
|
block_ = std::string("IIR"); //Plane D
|
||||||
@ -345,7 +345,7 @@ std::string Gnss_Satellite::what_block(const std::string& system_, unsigned int
|
|||||||
block_ = std::string("IIR-M"); //Plane A
|
block_ = std::string("IIR-M"); //Plane A
|
||||||
break;
|
break;
|
||||||
case 32 :
|
case 32 :
|
||||||
block_ = std::string("IIA"); //Plane E
|
block_ = std::string("IIF"); //Plane F
|
||||||
break;
|
break;
|
||||||
default :
|
default :
|
||||||
block_ = std::string("Unknown");
|
block_ = std::string("Unknown");
|
||||||
@ -504,13 +504,13 @@ std::string Gnss_Satellite::what_block(const std::string& system_, unsigned int
|
|||||||
block_ = std::string("IOV-FM3"); // Galileo In-Orbit Validation (IOV) satellite FM3 (Flight Model 3), launched on October 12, 2012
|
block_ = std::string("IOV-FM3"); // Galileo In-Orbit Validation (IOV) satellite FM3 (Flight Model 3), launched on October 12, 2012
|
||||||
break;
|
break;
|
||||||
case 20 :
|
case 20 :
|
||||||
block_ = std::string("IOV-FM4"); // Galileo In-Orbit Validation (IOV) satellite FM4 (Flight Model 4), launched on October 12, 2012. Unavailable.
|
block_ = std::string("IOV-FM4**"); // Galileo In-Orbit Validation (IOV) satellite FM4 (Flight Model 4), launched on October 12, 2012. Unavailable: Payload power problem.
|
||||||
break;
|
break;
|
||||||
case 18 :
|
case 18 :
|
||||||
block_ = std::string("FOC-FM1"); // Galileo Full Operational Capability (FOC) satellite FM1, launched into incorrect orbit on August 22, 2014.
|
block_ = std::string("FOC-FM1*"); // Galileo Full Operational Capability (FOC) satellite FM1, launched into incorrect orbit on August 22, 2014. Moved to usable orbit in December, 2014.
|
||||||
break;
|
break;
|
||||||
case 14 :
|
case 14 :
|
||||||
block_ = std::string("FOC-FM2"); // Galileo Full Operational Capability (FOC) satellite FM2, launched into incorrect orbit on August 22, 2014.
|
block_ = std::string("FOC-FM2*"); // Galileo Full Operational Capability (FOC) satellite FM2, launched into incorrect orbit on August 22, 2014. Moved to usable orbit in March, 2015.
|
||||||
break;
|
break;
|
||||||
case 22 :
|
case 22 :
|
||||||
block_ = std::string("FOC-FM4"); // Galileo Full Operational Capability (FOC) satellite FM4, launched on March 27, 2015.
|
block_ = std::string("FOC-FM4"); // Galileo Full Operational Capability (FOC) satellite FM4, launched on March 27, 2015.
|
||||||
|
@ -33,6 +33,7 @@
|
|||||||
#include "gps_ephemeris.h"
|
#include "gps_ephemeris.h"
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include "GPS_L1_CA.h"
|
#include "GPS_L1_CA.h"
|
||||||
|
#include "gnss_satellite.h"
|
||||||
|
|
||||||
Gps_Ephemeris::Gps_Ephemeris()
|
Gps_Ephemeris::Gps_Ephemeris()
|
||||||
{
|
{
|
||||||
@ -78,44 +79,12 @@ Gps_Ephemeris::Gps_Ephemeris()
|
|||||||
b_alert_flag = false; // If true, indicates that the SV URA may be worse than indicated in d_SV_accuracy, use that SV at our own risk.
|
b_alert_flag = false; // If true, indicates that the SV URA may be worse than indicated in d_SV_accuracy, use that SV at our own risk.
|
||||||
b_antispoofing_flag = false; // If true, the AntiSpoofing mode is ON in that SV
|
b_antispoofing_flag = false; // If true, the AntiSpoofing mode is ON in that SV
|
||||||
|
|
||||||
//Plane A (info from http://www.navcen.uscg.gov/?Do=constellationStatus)
|
auto gnss_sat = Gnss_Satellite();
|
||||||
satelliteBlock[9] = "IIA";
|
std::string _system ("GPS");
|
||||||
satelliteBlock[31] = "IIR-M";
|
for(unsigned int i = 1; i < 33; i++)
|
||||||
satelliteBlock[8] = "IIA";
|
{
|
||||||
satelliteBlock[7] = "IIR-M";
|
satelliteBlock[i] = gnss_sat.what_block(_system, i);
|
||||||
satelliteBlock[27] = "IIA";
|
}
|
||||||
//Plane B
|
|
||||||
satelliteBlock[16] = "IIR";
|
|
||||||
satelliteBlock[25] = "IIF";
|
|
||||||
satelliteBlock[28] = "IIR";
|
|
||||||
satelliteBlock[12] = "IIR-M";
|
|
||||||
satelliteBlock[30] = "IIA";
|
|
||||||
//Plane C
|
|
||||||
satelliteBlock[29] = "IIR-M";
|
|
||||||
satelliteBlock[3] = "IIA";
|
|
||||||
satelliteBlock[19] = "IIR";
|
|
||||||
satelliteBlock[17] = "IIR-M";
|
|
||||||
satelliteBlock[6] = "IIA";
|
|
||||||
//Plane D
|
|
||||||
satelliteBlock[2] = "IIR";
|
|
||||||
satelliteBlock[1] = "IIF";
|
|
||||||
satelliteBlock[21] = "IIR";
|
|
||||||
satelliteBlock[4] = "IIA";
|
|
||||||
satelliteBlock[11] = "IIR";
|
|
||||||
satelliteBlock[24] = "IIA"; // Decommissioned from active service on 04 Nov 2011
|
|
||||||
//Plane E
|
|
||||||
satelliteBlock[20] = "IIR";
|
|
||||||
satelliteBlock[22] = "IIR";
|
|
||||||
satelliteBlock[5] = "IIR-M";
|
|
||||||
satelliteBlock[18] = "IIR";
|
|
||||||
satelliteBlock[32] = "IIA";
|
|
||||||
satelliteBlock[10] = "IIA";
|
|
||||||
//Plane F
|
|
||||||
satelliteBlock[14] = "IIR";
|
|
||||||
satelliteBlock[15] = "IIR-M";
|
|
||||||
satelliteBlock[13] = "IIR";
|
|
||||||
satelliteBlock[23] = "IIR";
|
|
||||||
satelliteBlock[26] = "IIA";
|
|
||||||
|
|
||||||
d_satClkDrift = 0.0;
|
d_satClkDrift = 0.0;
|
||||||
d_dtr = 0.0;
|
d_dtr = 0.0;
|
||||||
|
@ -33,6 +33,7 @@ m * \file gps_navigation_message.cc
|
|||||||
#include "gps_navigation_message.h"
|
#include "gps_navigation_message.h"
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
#include <gnss_satellite.h>
|
||||||
|
|
||||||
|
|
||||||
void Gps_Navigation_Message::reset()
|
void Gps_Navigation_Message::reset()
|
||||||
@ -136,44 +137,12 @@ void Gps_Navigation_Message::reset()
|
|||||||
d_satvel_Y = 0;
|
d_satvel_Y = 0;
|
||||||
d_satvel_Z = 0;
|
d_satvel_Z = 0;
|
||||||
|
|
||||||
//Plane A (info from http://www.navcen.uscg.gov/?Do=constellationStatus)
|
auto gnss_sat = Gnss_Satellite();
|
||||||
satelliteBlock[9] = "IIA";
|
std::string _system ("GPS");
|
||||||
satelliteBlock[31] = "IIR-M";
|
for(unsigned int i = 1; i < 33; i++)
|
||||||
satelliteBlock[8] = "IIA";
|
{
|
||||||
satelliteBlock[7] = "IIR-M";
|
satelliteBlock[i] = gnss_sat.what_block(_system, i);
|
||||||
satelliteBlock[27] = "IIA";
|
}
|
||||||
//Plane B
|
|
||||||
satelliteBlock[16] = "IIR";
|
|
||||||
satelliteBlock[25] = "IIF";
|
|
||||||
satelliteBlock[28] = "IIR";
|
|
||||||
satelliteBlock[12] = "IIR-M";
|
|
||||||
satelliteBlock[30] = "IIA";
|
|
||||||
//Plane C
|
|
||||||
satelliteBlock[29] = "IIR-M";
|
|
||||||
satelliteBlock[3] = "IIA";
|
|
||||||
satelliteBlock[19] = "IIR";
|
|
||||||
satelliteBlock[17] = "IIR-M";
|
|
||||||
satelliteBlock[6] = "IIA";
|
|
||||||
//Plane D
|
|
||||||
satelliteBlock[2] = "IIR";
|
|
||||||
satelliteBlock[1] = "IIF";
|
|
||||||
satelliteBlock[21] = "IIR";
|
|
||||||
satelliteBlock[4] = "IIA";
|
|
||||||
satelliteBlock[11] = "IIR";
|
|
||||||
satelliteBlock[24] = "IIA"; // Decommissioned from active service on 04 Nov 2011
|
|
||||||
//Plane E
|
|
||||||
satelliteBlock[20] = "IIR";
|
|
||||||
satelliteBlock[22] = "IIR";
|
|
||||||
satelliteBlock[5] = "IIR-M";
|
|
||||||
satelliteBlock[18] = "IIR";
|
|
||||||
satelliteBlock[32] = "IIA";
|
|
||||||
satelliteBlock[10] = "IIA";
|
|
||||||
//Plane F
|
|
||||||
satelliteBlock[14] = "IIR";
|
|
||||||
satelliteBlock[15] = "IIR-M";
|
|
||||||
satelliteBlock[13] = "IIR";
|
|
||||||
satelliteBlock[23] = "IIR";
|
|
||||||
satelliteBlock[26] = "IIA";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user