1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-11-14 13:54:57 +00:00

In HAS data printer, only print Cell Mask when there are bias data

This commit is contained in:
Carles Fernandez 2024-11-05 11:19:30 +01:00
parent 3df1237dda
commit 3b513752b3
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

@ -213,26 +213,29 @@ bool Has_Simple_Printer::print_message(const Galileo_HAS_data* const has_data)
}
d_has_file << indent << indent << "Cell Mask Availability Flag: " << print_vector(has_data->cell_mask_availability_flag) << '\n';
for (uint8_t i = 0; i < has_data->Nsys; i++)
if (has_data->header.code_bias_flag == true || has_data->header.phase_bias_flag == true)
{
if (has_data->cell_mask_availability_flag[i] == true)
for (uint8_t i = 0; i < has_data->Nsys; i++)
{
std::string text;
if (has_data->gnss_id_mask[i] == 0)
if (has_data->cell_mask_availability_flag[i] == true)
{
text = "Cell Mask for GPS: ";
std::string text;
if (has_data->gnss_id_mask[i] == 0)
{
text = "Cell Mask for GPS: ";
}
else if (has_data->gnss_id_mask[i] == 2)
{
text = "Cell Mask for Galileo: ";
}
else
{
text = "Cell Mask for Reserved: ";
}
d_has_file << indent << indent << text;
const std::string filler(indent.length() * 2 + text.length(), ' ');
d_has_file << print_matrix(has_data->cell_mask[i], filler);
}
else if (has_data->gnss_id_mask[i] == 2)
{
text = "Cell Mask for Galileo: ";
}
else
{
text = "Cell Mask for Reserved: ";
}
d_has_file << indent << indent << text;
const std::string filler(indent.length() * 2 + text.length(), ' ');
d_has_file << print_matrix(has_data->cell_mask[i], filler);
}
}
d_has_file << indent << indent << "Nav message: " << print_vector(has_data->nav_message) << " (0: GPS LNAV or Galileo I/NAV)\n";