mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-19 05:33:02 +00:00
Fix navdata_monitor extraction of FNAV message data
This commit is contained in:
parent
ad9add8426
commit
cf91334d66
@ -1003,18 +1003,18 @@ int galileo_telemetry_decoder_gs::general_work(int noutput_items __attribute__((
|
|||||||
{
|
{
|
||||||
d_TOW_at_current_symbol_ms += static_cast<uint32_t>(GALILEO_FNAV_CODES_PER_SYMBOL * GALILEO_E5A_CODE_PERIOD_MS);
|
d_TOW_at_current_symbol_ms += static_cast<uint32_t>(GALILEO_FNAV_CODES_PER_SYMBOL * GALILEO_E5A_CODE_PERIOD_MS);
|
||||||
}
|
}
|
||||||
if (d_enable_navdata_monitor && !d_nav_msg_packet.nav_message.empty())
|
|
||||||
{
|
|
||||||
d_nav_msg_packet.system = std::string(1, current_symbol.System);
|
|
||||||
d_nav_msg_packet.signal = std::string(current_symbol.Signal);
|
|
||||||
d_nav_msg_packet.prn = static_cast<int32_t>(current_symbol.PRN);
|
|
||||||
d_nav_msg_packet.tow_at_current_symbol_ms = static_cast<int32_t>(d_TOW_at_current_symbol_ms);
|
|
||||||
const std::shared_ptr<Nav_Message_Packet> tmp_obj = std::make_shared<Nav_Message_Packet>(d_nav_msg_packet);
|
|
||||||
this->message_port_pub(pmt::mp("Nav_msg_from_TLM"), pmt::make_any(tmp_obj));
|
|
||||||
d_nav_msg_packet.nav_message = "";
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
if (d_enable_navdata_monitor && !d_nav_msg_packet.nav_message.empty())
|
||||||
|
{
|
||||||
|
d_nav_msg_packet.system = std::string(1, current_symbol.System);
|
||||||
|
d_nav_msg_packet.signal = std::string(current_symbol.Signal);
|
||||||
|
d_nav_msg_packet.prn = static_cast<int32_t>(current_symbol.PRN);
|
||||||
|
d_nav_msg_packet.tow_at_current_symbol_ms = static_cast<int32_t>(d_TOW_at_current_symbol_ms);
|
||||||
|
const std::shared_ptr<Nav_Message_Packet> tmp_obj = std::make_shared<Nav_Message_Packet>(d_nav_msg_packet);
|
||||||
|
this->message_port_pub(pmt::mp("Nav_msg_from_TLM"), pmt::make_any(tmp_obj));
|
||||||
|
d_nav_msg_packet.nav_message = "";
|
||||||
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
case 3: // CNAV
|
case 3: // CNAV
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user