mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-15 04:30:33 +00:00
Fix formatting, print HAS message decoding only when we already have the mask and can be read
This commit is contained in:
parent
98a850053c
commit
d4db8a82b7
@ -225,12 +225,12 @@ void galileo_e6_has_msg_receiver::process_HAS_page(const Galileo_HAS_page& has_p
|
|||||||
if (res == 0)
|
if (res == 0)
|
||||||
{
|
{
|
||||||
// Successful decoding, we have a valid HAS message stored at d_HAS_data
|
// Successful decoding, we have a valid HAS message stored at d_HAS_data
|
||||||
std::cout << TEXT_MAGENTA << "New Galileo HAS message type " << std::to_string(has_page.message_id)
|
|
||||||
<< " received and successfully decoded" << TEXT_RESET << '\n';
|
|
||||||
if (d_nsat_in_mask_id[d_HAS_data.header.mask_id] != 0)
|
if (d_nsat_in_mask_id[d_HAS_data.header.mask_id] != 0)
|
||||||
{
|
{
|
||||||
// if we have the mask for that message, it's ready to be sent to PVT
|
// if we have the mask for that message, it's ready to be sent to PVT
|
||||||
d_new_message = true;
|
d_new_message = true;
|
||||||
|
std::cout << TEXT_MAGENTA << "New Galileo HAS message ID " << std::to_string(has_page.message_id)
|
||||||
|
<< " received and successfully decoded" << TEXT_RESET << '\n';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -57,7 +57,7 @@ class galileo_e6_has_msg_receiver : public gr::block
|
|||||||
public:
|
public:
|
||||||
~galileo_e6_has_msg_receiver() = default; //!< Default destructor
|
~galileo_e6_has_msg_receiver() = default; //!< Default destructor
|
||||||
void set_enable_navdata_monitor(bool enable);
|
void set_enable_navdata_monitor(bool enable);
|
||||||
std::shared_ptr<Galileo_HAS_data> process_test_page(const pmt::pmt_t& msg); //!< For testing purposes only
|
std::shared_ptr<Galileo_HAS_data> process_test_page(const pmt::pmt_t& msg); //!< For testing purposes only
|
||||||
|
|
||||||
private:
|
private:
|
||||||
friend galileo_e6_has_msg_receiver_sptr galileo_e6_has_msg_receiver_make();
|
friend galileo_e6_has_msg_receiver_sptr galileo_e6_has_msg_receiver_make();
|
||||||
|
Loading…
Reference in New Issue
Block a user