1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-11-17 07:14:55 +00:00

Fix Galileo MSM message numbers

This commit is contained in:
Carles Fernandez 2016-05-09 19:24:29 +02:00
parent f1a5708891
commit af56520798
2 changed files with 3 additions and 3 deletions

View File

@ -83,7 +83,7 @@ GalileoE1Pvt::GalileoE1Pvt(ConfigurationInterface* configuration,
int rtcm_MSM_rate_ms = boost::math::lcm(configuration->property(role + ".rtcm_MSM_rate_ms", 1000), output_rate_ms); int rtcm_MSM_rate_ms = boost::math::lcm(configuration->property(role + ".rtcm_MSM_rate_ms", 1000), output_rate_ms);
std::map<int,int> rtcm_msg_rate_ms; std::map<int,int> rtcm_msg_rate_ms;
rtcm_msg_rate_ms[1045] = rtcm_MT1045_rate_ms; rtcm_msg_rate_ms[1045] = rtcm_MT1045_rate_ms;
for (int k = 1071; k < 1078; k++) // All GPS MSM for (int k = 1091; k < 1098; k++) // All Galileo MSM
{ {
rtcm_msg_rate_ms[k] = rtcm_MSM_rate_ms; rtcm_msg_rate_ms[k] = rtcm_MSM_rate_ms;
} }

View File

@ -152,9 +152,9 @@ galileo_e1_pvt_cc::galileo_e1_pvt_cc(unsigned int nchannels, bool dump, std::str
{ {
d_rtcm_MT1045_rate_ms = boost::math::lcm(5000, d_output_rate_ms); // default value if not set d_rtcm_MT1045_rate_ms = boost::math::lcm(5000, d_output_rate_ms); // default value if not set
} }
if(rtcm_msg_rate_ms.find(1071) != rtcm_msg_rate_ms.end()) // whatever between 1071 and 1077 if(rtcm_msg_rate_ms.find(1091) != rtcm_msg_rate_ms.end()) // whatever between 1091 and 1097
{ {
d_rtcm_MSM_rate_ms = rtcm_msg_rate_ms[1071]; d_rtcm_MSM_rate_ms = rtcm_msg_rate_ms[1091];
} }
else else
{ {