mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2026-09-11 03:35:43 +00:00
Improve logging
This commit is contained in:
@@ -329,6 +329,8 @@ void pcps_acquisition::send_positive_acquisition(const AcquisitionResult& result
|
||||
// Declare positive acquisition using a message port
|
||||
// 0=STOP_CHANNEL 1=ACQ_SUCCEES 2=ACQ_FAIL
|
||||
this->message_port_pub(pmt::mp("events"), pmt::from_long(1));
|
||||
LOG(INFO) << "Successful acquisition in channel " << d_channel
|
||||
<< " for satellite " << d_gnss_synchro->System << " " << d_gnss_synchro->PRN;
|
||||
}
|
||||
|
||||
// Copy and push current Gnss_Synchro to monitor queue
|
||||
|
||||
@@ -228,6 +228,8 @@ void pcps_acquisition_fpga::set_active(bool active)
|
||||
d_active = false;
|
||||
send_positive_acquisition();
|
||||
d_state = 0; // Positive acquisition
|
||||
LOG(INFO) << "Successful acquisition in channel " << d_channel
|
||||
<< " for satellite " << d_gnss_synchro->System << " " << d_gnss_synchro->PRN;
|
||||
break;
|
||||
}
|
||||
num_second_acq += 1;
|
||||
|
||||
@@ -529,7 +529,8 @@ int beidou_b1i_telemetry_decoder_gs::general_work(int noutput_items __attribute_
|
||||
if (!d_flag_frame_sync)
|
||||
{
|
||||
d_flag_frame_sync = true;
|
||||
DLOG(INFO) << "BeiDou DNAV frame sync found for SAT " << this->d_satellite;
|
||||
LOG(INFO) << "Successful frame synchronization in channel " << d_channel << " for satellite " << this->d_satellite
|
||||
<< " at sample_counter=" << d_sample_counter;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
@@ -543,8 +543,8 @@ int beidou_b3i_telemetry_decoder_gs::general_work(
|
||||
if (!d_flag_frame_sync)
|
||||
{
|
||||
d_flag_frame_sync = true;
|
||||
DLOG(INFO) << "BeiDou DNAV frame sync found for SAT "
|
||||
<< this->d_satellite;
|
||||
LOG(INFO) << "Successful frame synchronization in channel " << d_channel << " for satellite " << this->d_satellite
|
||||
<< " at sample_counter=" << d_sample_counter;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
@@ -1079,7 +1079,8 @@ int galileo_telemetry_decoder_gs::general_work(int noutput_items __attribute__((
|
||||
if (!d_flag_frame_sync)
|
||||
{
|
||||
d_flag_frame_sync = true;
|
||||
DLOG(INFO) << " Frame sync SAT " << this->d_satellite;
|
||||
LOG(INFO) << "Successful frame synchronization in channel " << d_channel << " for satellite " << this->d_satellite
|
||||
<< " at sample_counter=" << d_received_sample_counter;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
+2
-2
@@ -379,8 +379,8 @@ int glonass_l1_ca_telemetry_decoder_gs::general_work(int noutput_items __attribu
|
||||
if (!d_flag_frame_sync)
|
||||
{
|
||||
d_flag_frame_sync = true;
|
||||
DLOG(INFO) << " Frame sync SAT " << this->d_satellite << " with preamble start at "
|
||||
<< d_symbol_history[0].Tracking_sample_counter << " [samples]";
|
||||
LOG(INFO) << "Successful frame synchronization in channel " << d_channel << " for satellite " << this->d_satellite
|
||||
<< " at sample_counter=" << d_symbol_history[0].Tracking_sample_counter;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
+2
-2
@@ -377,8 +377,8 @@ int glonass_l2_ca_telemetry_decoder_gs::general_work(int noutput_items __attribu
|
||||
if (!d_flag_frame_sync)
|
||||
{
|
||||
d_flag_frame_sync = true;
|
||||
DLOG(INFO) << " Frame sync SAT " << this->d_satellite << " with preamble start at "
|
||||
<< d_symbol_history[0].Tracking_sample_counter << " [samples]";
|
||||
LOG(INFO) << "Successful frame synchronization in channel " << d_channel << " for satellite " << this->d_satellite
|
||||
<< " at sample_counter=" << d_symbol_history[0].Tracking_sample_counter;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
@@ -475,7 +475,8 @@ void gps_l1_ca_telemetry_decoder_gs::frame_synchronization(const Gnss_Synchro &c
|
||||
if (!d_flag_frame_sync)
|
||||
{
|
||||
d_flag_frame_sync = true;
|
||||
DLOG(INFO) << " Frame sync SAT " << this->d_satellite;
|
||||
LOG(INFO) << "Successful frame synchronization in channel " << d_channel << " for satellite " << this->d_satellite
|
||||
<< " at d_sample_counter=" << d_sample_counter;
|
||||
}
|
||||
d_stat = 1; // preamble acquired
|
||||
}
|
||||
@@ -487,7 +488,7 @@ void gps_l1_ca_telemetry_decoder_gs::frame_synchronization(const Gnss_Synchro &c
|
||||
{
|
||||
if (d_sample_counter >= d_preamble_index + static_cast<uint64_t>(d_preamble_period_symbols))
|
||||
{
|
||||
DLOG(INFO) << "Preamble received for SAT " << this->d_satellite << "d_sample_counter=" << d_sample_counter << "\n";
|
||||
DLOG(INFO) << "Preamble received for SAT " << this->d_satellite << " d_sample_counter=" << d_sample_counter << "\n";
|
||||
// call the decoder
|
||||
// 0. fetch the symbols into an array
|
||||
d_preamble_index = d_sample_counter; // record the preamble sample stamp (t_P)
|
||||
|
||||
@@ -287,6 +287,8 @@ int gps_l2c_telemetry_decoder_gs::general_work(int noutput_items __attribute__((
|
||||
d_TOW_at_current_symbol = static_cast<double>(msg.tow) * 6.0 + static_cast<double>(delay) * GPS_L2_M_PERIOD_S + 12 * GPS_L2_M_PERIOD_S;
|
||||
// d_TOW_at_current_symbol = floor(d_TOW_at_current_symbol * 1000.0) / 1000.0;
|
||||
d_flag_valid_word = true;
|
||||
LOG(INFO) << "Successful frame synchronization in channel " << d_channel << " for satellite " << this->d_satellite
|
||||
<< " at sample_counter=" << d_sample_counter;
|
||||
|
||||
if (d_enable_navdata_monitor && !d_nav_msg_packet.nav_message.empty())
|
||||
{
|
||||
|
||||
@@ -299,6 +299,8 @@ int gps_l5_telemetry_decoder_gs::general_work(int noutput_items __attribute__((u
|
||||
{
|
||||
d_last_valid_preamble = d_sample_counter;
|
||||
d_flag_valid_word = true;
|
||||
LOG(INFO) << "Successful frame synchronization in channel " << d_channel << " for satellite " << this->d_satellite
|
||||
<< " at sample_counter=" << d_sample_counter;
|
||||
}
|
||||
|
||||
if (d_enable_navdata_monitor && !d_nav_msg_packet.nav_message.empty())
|
||||
|
||||
@@ -1114,8 +1114,8 @@ bool dll_pll_veml_tracking::cn0_and_tracking_lock_status(double coh_integration_
|
||||
}
|
||||
if (d_carrier_lock_fail_counter > d_trk_parameters.max_carrier_lock_fail || d_code_lock_fail_counter > d_trk_parameters.max_code_lock_fail)
|
||||
{
|
||||
std::cout << "Loss of lock in channel " << d_channel << "!\n";
|
||||
LOG(INFO) << "Loss of lock in channel " << d_channel
|
||||
std::cout << "Loss of lock in channel " << d_channel << ", satellite " << Gnss_Satellite(d_systemName, d_acquisition_gnss_synchro->PRN) << " !\n";
|
||||
LOG(INFO) << "Loss of lock in channel " << d_channel << ", satellite " << Gnss_Satellite(d_systemName, d_acquisition_gnss_synchro->PRN)
|
||||
<< " (carrier_lock_fail_counter:" << d_carrier_lock_fail_counter
|
||||
<< " code_lock_fail_counter : " << d_code_lock_fail_counter << ")";
|
||||
this->message_port_pub(pmt::mp("events"), pmt::from_long(3)); // 3 -> loss of lock
|
||||
|
||||
@@ -655,8 +655,8 @@ bool dll_pll_veml_tracking_fpga::cn0_and_tracking_lock_status(double coh_integra
|
||||
}
|
||||
if (d_carrier_lock_fail_counter > d_trk_parameters.max_carrier_lock_fail or d_code_lock_fail_counter > d_trk_parameters.max_code_lock_fail)
|
||||
{
|
||||
std::cout << "Loss of lock in channel " << d_channel << "!\n";
|
||||
LOG(INFO) << "Loss of lock in channel " << d_channel
|
||||
std::cout << "Loss of lock in channel " << d_channel << ", satellite " << Gnss_Satellite(d_systemName, d_acquisition_gnss_synchro->PRN) << " !\n";
|
||||
LOG(INFO) << "Loss of lock in channel " << d_channel << ", satellite " << Gnss_Satellite(d_systemName, d_acquisition_gnss_synchro->PRN)
|
||||
<< " (carrier_lock_fail_counter:" << d_carrier_lock_fail_counter
|
||||
<< " code_lock_fail_counter : " << d_code_lock_fail_counter << ")";
|
||||
this->message_port_pub(pmt::mp("events"), pmt::from_long(3)); // 3 -> loss of lock
|
||||
|
||||
Reference in New Issue
Block a user