mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-19 05:33:02 +00:00
[TAS-111] time synch check: GST-UTC conversion before comparison
Refactored the code to use Galileo_Utc_Model's GST_to_UTC_time function.
This commit is contained in:
parent
a32bdae396
commit
77c160285d
@ -122,8 +122,9 @@ void osnma_msg_receiver::msg_handler_osnma(const pmt::pmt_t& msg)
|
|||||||
|
|
||||||
// compare local time with OSNMA subframe time
|
// compare local time with OSNMA subframe time
|
||||||
d_GST_SIS = nma_msg->TOW_sf0 + nma_msg->WN_sf0 * 604800; // TODO - unsure about this operation and of the -24 seconds,...
|
d_GST_SIS = nma_msg->TOW_sf0 + nma_msg->WN_sf0 * 604800; // TODO - unsure about this operation and of the -24 seconds,...
|
||||||
|
auto OSNMA_UTC_time = nma_msg->UtcModelData.GST_to_UTC_time(d_GST_SIS, nma_msg->WN_sf0);
|
||||||
double_t T_L = 15; // TODO - to define the maximum allowed time difference between local time and OSNMA subframe time
|
double_t T_L = 15; // TODO - to define the maximum allowed time difference between local time and OSNMA subframe time
|
||||||
if(abs(d_GST_SIS - d_receiver_time) <= T_L)
|
if(abs(OSNMA_UTC_time - d_receiver_time) <= T_L)
|
||||||
{
|
{
|
||||||
process_osnma_message(nma_msg);
|
process_osnma_message(nma_msg);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user