1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-01-18 21:23:02 +00:00

Add work on OSNMA receiver

This commit is contained in:
Carles Fernandez 2023-06-08 16:30:26 +02:00
parent a7e822166f
commit 46442ee0fc
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

@ -193,15 +193,32 @@ void osnma_msg_receiver::read_dsm_block(const std::shared_ptr<OSNMA_msg>& osnma_
d_dsm_id_received[d_osnma_data.d_dsm_header.dsm_id][d_osnma_data.d_dsm_header.dsm_block_id] = 1;
std::cout << "Galileo OSNMA: Available blocks for DSM_ID " << static_cast<uint32_t>(d_osnma_data.d_dsm_header.dsm_id) << ": [ ";
for (auto id_received : d_dsm_id_received[d_osnma_data.d_dsm_header.dsm_id])
if (d_number_of_blocks[d_osnma_data.d_dsm_header.dsm_id] == 0)
{
if (id_received == 0)
for (auto id_received : d_dsm_id_received[d_osnma_data.d_dsm_header.dsm_id])
{
std::cout << "- ";
if (id_received == 0)
{
std::cout << "- ";
}
else
{
std::cout << "X ";
}
}
else
}
else
{
for (uint8_t k = 0; k < d_number_of_blocks[d_osnma_data.d_dsm_header.dsm_id]; k++)
{
std::cout << "X ";
if (d_dsm_id_received[d_osnma_data.d_dsm_header.dsm_id][k] == 0)
{
std::cout << "- ";
}
else
{
std::cout << "X ";
}
}
}
std::cout << "]" << std::endl;