mirror of
				https://github.com/gnss-sdr/gnss-sdr
				synced 2025-10-31 15:23:04 +00:00 
			
		
		
		
	several receiver configuration mechanism simplifications and several bug fixes. Work in progress
This commit is contained in:
		| @@ -385,14 +385,7 @@ int galileo_e1_dll_pll_veml_tracking_cc::general_work (int noutput_items __attri | ||||
|                         { | ||||
|                             std::cout << "Loss of lock in channel " << d_channel << "!" << std::endl; | ||||
|                             LOG(INFO) << "Loss of lock in channel " << d_channel << "!"; | ||||
|                             pmt::pmt_t value = pmt::from_long(3);//3 -> loss of lock | ||||
|                             this->message_port_pub(pmt::mp("events"), value); | ||||
|  | ||||
| //                            std::unique_ptr<ControlMessageFactory> cmf(new ControlMessageFactory()); | ||||
| //                            if (d_queue != gr::msg_queue::sptr()) | ||||
| //                                { | ||||
| //                                    d_queue->handle(cmf->GetQueueMessage(d_channel, 2)); | ||||
| //                                } | ||||
|                             this->message_port_pub(pmt::mp("events"), pmt::from_long(3));//3 -> loss of lock | ||||
|                             d_carrier_lock_fail_counter = 0; | ||||
|                             d_enable_tracking = false; // TODO: check if disabling tracking is consistent with the channel state machine | ||||
|                         } | ||||
|   | ||||
| @@ -110,7 +110,7 @@ Galileo_E1_Tcp_Connector_Tracking_cc::Galileo_E1_Tcp_Connector_Tracking_cc( | ||||
| { | ||||
|     // Telemetry bit synchronization message port input | ||||
|     this->message_port_register_in(pmt::mp("preamble_timestamp_s")); | ||||
|  | ||||
|     this->message_port_register_out(pmt::mp("events")); | ||||
|     this->set_relative_rate(1.0/vector_length); | ||||
|     // initialize internal vars | ||||
|     d_queue = queue; | ||||
| @@ -394,11 +394,8 @@ int Galileo_E1_Tcp_Connector_Tracking_cc::general_work (int noutput_items __attr | ||||
|                         { | ||||
|                             std::cout << "Loss of lock in channel " << d_channel << "!" << std::endl; | ||||
|                             LOG(INFO) << "Loss of lock in channel " << d_channel << "!"; | ||||
|                             std::unique_ptr<ControlMessageFactory> cmf(new ControlMessageFactory()); | ||||
|                             if (d_queue != gr::msg_queue::sptr()) | ||||
|                                 { | ||||
|                                     d_queue->handle(cmf->GetQueueMessage(d_channel, 2)); | ||||
|                                 } | ||||
|                             this->message_port_pub(pmt::mp("events"), pmt::from_long(3));//3 -> loss of lock | ||||
|  | ||||
|                             d_carrier_lock_fail_counter = 0; | ||||
|                             d_enable_tracking = false; // TODO: check if disabling tracking is consistent with the channel state machine | ||||
|                         } | ||||
|   | ||||
| @@ -109,7 +109,7 @@ Galileo_E5a_Dll_Pll_Tracking_cc::Galileo_E5a_Dll_Pll_Tracking_cc( | ||||
| { | ||||
|     // Telemetry bit synchronization message port input | ||||
|     this->message_port_register_in(pmt::mp("preamble_timestamp_s")); | ||||
|  | ||||
|     this->message_port_register_out(pmt::mp("events")); | ||||
|     this->set_relative_rate(1.0 / vector_length); | ||||
|     // initialize internal vars | ||||
|     d_queue = queue; | ||||
| @@ -586,11 +586,7 @@ int Galileo_E5a_Dll_Pll_Tracking_cc::general_work (int noutput_items __attribute | ||||
|                                         { | ||||
|                                             std::cout << "Loss of lock in channel " << d_channel << "!" << std::endl; | ||||
|                                             LOG(INFO) << "Loss of lock in channel " << d_channel << "!"; | ||||
|                                             std::unique_ptr<ControlMessageFactory> cmf(new ControlMessageFactory()); | ||||
|                                             if (d_queue != gr::msg_queue::sptr()) | ||||
|                                                 { | ||||
|                                                     d_queue->handle(cmf->GetQueueMessage(d_channel, 2)); | ||||
|                                                 } | ||||
|                                             this->message_port_pub(pmt::mp("events"), pmt::from_long(3));//3 -> loss of lock | ||||
|                                             d_carrier_lock_fail_counter = 0; | ||||
|                                             d_state = 0; // TODO: check if disabling tracking is consistent with the channel state machine | ||||
|                                         } | ||||
| @@ -615,11 +611,7 @@ int Galileo_E5a_Dll_Pll_Tracking_cc::general_work (int noutput_items __attribute | ||||
|                                         { | ||||
|                                             std::cout << "Loss of lock in channel " << d_channel << "!" << std::endl; | ||||
|                                             LOG(INFO) << "Loss of lock in channel " << d_channel << "!"; | ||||
|                                             std::unique_ptr<ControlMessageFactory> cmf(new ControlMessageFactory()); | ||||
|                                             if (d_queue != gr::msg_queue::sptr()) | ||||
|                                                 { | ||||
|                                                     d_queue->handle(cmf->GetQueueMessage(d_channel, 2)); | ||||
|                                                 } | ||||
|                                             this->message_port_pub(pmt::mp("events"), pmt::from_long(3));//3 -> loss of lock | ||||
|                                             d_carrier_lock_fail_counter = 0; | ||||
|                                             d_state = 0; | ||||
|                                         } | ||||
|   | ||||
| @@ -548,14 +548,7 @@ int gps_l1_ca_dll_pll_c_aid_tracking_cc::general_work (int noutput_items __attri | ||||
|                                 { | ||||
|                                     std::cout << "Loss of lock in channel " << d_channel << "!" << std::endl; | ||||
|                                     LOG(INFO) << "Loss of lock in channel " << d_channel << "!"; | ||||
|                                     pmt::pmt_t value = pmt::from_long(3);//3 -> loss of lock | ||||
|                                     this->message_port_pub(pmt::mp("events"), value); | ||||
|  | ||||
|                                     //std::unique_ptr<ControlMessageFactory> cmf(new ControlMessageFactory()); | ||||
|                                     //if (d_queue != gr::msg_queue::sptr()) | ||||
|                                     //    { | ||||
|                                     //        d_queue->handle(cmf->GetQueueMessage(d_channel, 2)); | ||||
|                                     //    } | ||||
|                                     this->message_port_pub(pmt::mp("events"), pmt::from_long(3));//3 -> loss of lock | ||||
|                                     d_carrier_lock_fail_counter = 0; | ||||
|                                     d_enable_tracking = false; // TODO: check if disabling tracking is consistent with the channel state machine | ||||
|                                 } | ||||
|   | ||||
| @@ -104,6 +104,7 @@ gps_l1_ca_dll_pll_c_aid_tracking_sc::gps_l1_ca_dll_pll_c_aid_tracking_sc( | ||||
| { | ||||
|     // Telemetry bit synchronization message port input | ||||
|     this->message_port_register_in(pmt::mp("preamble_timestamp_s")); | ||||
|     this->message_port_register_out(pmt::mp("events")); | ||||
|     // initialize internal vars | ||||
|     d_queue = queue; | ||||
|     d_dump = dump; | ||||
| @@ -425,11 +426,7 @@ int gps_l1_ca_dll_pll_c_aid_tracking_sc::general_work (int noutput_items __attri | ||||
|                         { | ||||
|                             std::cout << "Loss of lock in channel " << d_channel << "!" << std::endl; | ||||
|                             LOG(INFO) << "Loss of lock in channel " << d_channel << "!"; | ||||
|                             std::unique_ptr<ControlMessageFactory> cmf(new ControlMessageFactory()); | ||||
|                             if (d_queue != gr::msg_queue::sptr()) | ||||
|                                 { | ||||
|                                     d_queue->handle(cmf->GetQueueMessage(d_channel, 2)); | ||||
|                                 } | ||||
|                             this->message_port_pub(pmt::mp("events"), pmt::from_long(3));//3 -> loss of lock | ||||
|                             d_carrier_lock_fail_counter = 0; | ||||
|                             d_enable_tracking = false; // TODO: check if disabling tracking is consistent with the channel state machine | ||||
|                         } | ||||
|   | ||||
| @@ -105,7 +105,6 @@ Gps_L1_Ca_Dll_Pll_Tracking_cc::Gps_L1_Ca_Dll_Pll_Tracking_cc( | ||||
| { | ||||
|     // Telemetry bit synchronization message port input | ||||
|     this->message_port_register_in(pmt::mp("preamble_timestamp_s")); | ||||
|  | ||||
|     this->message_port_register_out(pmt::mp("events")); | ||||
|  | ||||
|     // initialize internal vars | ||||
| @@ -408,13 +407,7 @@ int Gps_L1_Ca_Dll_Pll_Tracking_cc::general_work (int noutput_items __attribute__ | ||||
|                         { | ||||
|                             std::cout << "Loss of lock in channel " << d_channel << "!" << std::endl; | ||||
|                             LOG(INFO) << "Loss of lock in channel " << d_channel << "!"; | ||||
|                             pmt::pmt_t value = pmt::from_long(3);//3 -> loss of lock | ||||
|                             this->message_port_pub(pmt::mp("events"), value); | ||||
| //                            std::unique_ptr<ControlMessageFactory> cmf(new ControlMessageFactory()); | ||||
| //                            if (d_queue != gr::msg_queue::sptr()) | ||||
| //                                { | ||||
| //                                    d_queue->handle(cmf->GetQueueMessage(d_channel, 2)); | ||||
| //                                } | ||||
|                             this->message_port_pub(pmt::mp("events"), pmt::from_long(3));//3 -> loss of lock | ||||
|                             d_carrier_lock_fail_counter = 0; | ||||
|                             d_enable_tracking = false; // TODO: check if disabling tracking is consistent with the channel state machine | ||||
|                         } | ||||
|   | ||||
| @@ -101,6 +101,7 @@ Gps_L1_Ca_Dll_Pll_Tracking_GPU_cc::Gps_L1_Ca_Dll_Pll_Tracking_GPU_cc( | ||||
| { | ||||
|     // Telemetry bit synchronization message port input | ||||
|     this->message_port_register_in(pmt::mp("preamble_timestamp_s")); | ||||
|     this->message_port_register_out(pmt::mp("events")); | ||||
|     // initialize internal vars | ||||
|     d_queue = queue; | ||||
|     d_dump = dump; | ||||
| @@ -431,11 +432,7 @@ int Gps_L1_Ca_Dll_Pll_Tracking_GPU_cc::general_work (int noutput_items __attribu | ||||
|                         { | ||||
|                             std::cout << "Loss of lock in channel " << d_channel << "!" << std::endl; | ||||
|                             LOG(INFO) << "Loss of lock in channel " << d_channel << "!"; | ||||
|                             std::unique_ptr<ControlMessageFactory> cmf(new ControlMessageFactory()); | ||||
|                             if (d_queue != gr::msg_queue::sptr()) | ||||
|                                 { | ||||
|                                     d_queue->handle(cmf->GetQueueMessage(d_channel, 2)); | ||||
|                                 } | ||||
|                             this->message_port_pub(pmt::mp("events"), pmt::from_long(3));//3 -> loss of lock | ||||
|                             d_carrier_lock_fail_counter = 0; | ||||
|                             d_enable_tracking = false; // TODO: check if disabling tracking is consistent with the channel state machine | ||||
|                         } | ||||
|   | ||||
| @@ -104,6 +104,7 @@ Gps_L1_Ca_Tcp_Connector_Tracking_cc::Gps_L1_Ca_Tcp_Connector_Tracking_cc( | ||||
| { | ||||
|     // Telemetry bit synchronization message port input | ||||
|     this->message_port_register_in(pmt::mp("preamble_timestamp_s")); | ||||
|     this->message_port_register_out(pmt::mp("events")); | ||||
|     // initialize internal vars | ||||
|     d_queue = queue; | ||||
|     d_dump = dump; | ||||
| @@ -441,10 +442,7 @@ int Gps_L1_Ca_Tcp_Connector_Tracking_cc::general_work (int noutput_items __attri | ||||
|                         { | ||||
|                             std::cout << "Loss of lock in channel " << d_channel << "!" << std::endl; | ||||
|                             LOG(INFO) << "Loss of lock in channel " << d_channel << "!"; | ||||
|                             std::unique_ptr<ControlMessageFactory> cmf(new ControlMessageFactory()); | ||||
|                             if (d_queue != gr::msg_queue::sptr()) { | ||||
|                                     d_queue->handle(cmf->GetQueueMessage(d_channel, 2)); | ||||
|                             } | ||||
|                             this->message_port_pub(pmt::mp("events"), pmt::from_long(3));//3 -> loss of lock | ||||
|                             d_carrier_lock_fail_counter = 0; | ||||
|                             d_enable_tracking = false; // TODO: check if disabling tracking is consistent with the channel state machine | ||||
|  | ||||
|   | ||||
| @@ -104,6 +104,7 @@ gps_l2_m_dll_pll_tracking_cc::gps_l2_m_dll_pll_tracking_cc( | ||||
| { | ||||
|     // Telemetry bit synchronization message port input | ||||
|     this->message_port_register_in(pmt::mp("preamble_timestamp_s")); | ||||
|     this->message_port_register_out(pmt::mp("events")); | ||||
|     // initialize internal vars | ||||
|     d_queue = queue; | ||||
|     d_dump = dump; | ||||
| @@ -412,11 +413,7 @@ int gps_l2_m_dll_pll_tracking_cc::general_work (int noutput_items __attribute__( | ||||
|                         { | ||||
|                             std::cout << "Loss of lock in channel " << d_channel << "!" << std::endl; | ||||
|                             LOG(INFO) << "Loss of lock in channel " << d_channel << "!"; | ||||
|                             std::unique_ptr<ControlMessageFactory> cmf(new ControlMessageFactory()); | ||||
|                             if (d_queue != gr::msg_queue::sptr()) | ||||
|                                 { | ||||
|                                     d_queue->handle(cmf->GetQueueMessage(d_channel, 2)); | ||||
|                                 } | ||||
|                             this->message_port_pub(pmt::mp("events"), pmt::from_long(3));//3 -> loss of lock | ||||
|                             d_carrier_lock_fail_counter = 0; | ||||
|                             d_enable_tracking = false; // TODO: check if disabling tracking is consistent with the channel state machine | ||||
|                         } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Javier Arribas
					Javier Arribas