mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-10-27 13:37:38 +00:00
Apply clang-tidy
This commit is contained in:
@@ -63,10 +63,10 @@ Dll_Pll_Conf::Dll_Pll_Conf()
|
||||
very_early_late_space_narrow_chips = 0.1;
|
||||
extend_correlation_symbols = 5;
|
||||
cn0_samples = FLAGS_cn0_samples;
|
||||
cn0_smoother_samples=200;
|
||||
cn0_smoother_alpha=0.002;
|
||||
carrier_lock_test_smoother_alpha=0.002;
|
||||
carrier_lock_test_smoother_samples=25;
|
||||
cn0_smoother_samples = 200;
|
||||
cn0_smoother_alpha = 0.002;
|
||||
carrier_lock_test_smoother_alpha = 0.002;
|
||||
carrier_lock_test_smoother_samples = 25;
|
||||
cn0_min = FLAGS_cn0_min;
|
||||
max_carrier_lock_fail = FLAGS_max_carrier_lock_fail;
|
||||
max_code_lock_fail = FLAGS_max_lock_fail;
|
||||
|
||||
@@ -65,10 +65,10 @@ Dll_Pll_Conf_Fpga::Dll_Pll_Conf_Fpga()
|
||||
very_early_late_space_narrow_chips = 0.1;
|
||||
extend_correlation_symbols = 5;
|
||||
cn0_samples = FLAGS_cn0_samples;
|
||||
cn0_smoother_samples=200;
|
||||
cn0_smoother_alpha=0.002;
|
||||
carrier_lock_test_smoother_alpha=0.002;
|
||||
carrier_lock_test_smoother_samples=25;
|
||||
cn0_smoother_samples = 200;
|
||||
cn0_smoother_alpha = 0.002;
|
||||
carrier_lock_test_smoother_alpha = 0.002;
|
||||
carrier_lock_test_smoother_samples = 25;
|
||||
cn0_min = FLAGS_cn0_min;
|
||||
max_carrier_lock_fail = FLAGS_max_carrier_lock_fail;
|
||||
max_code_lock_fail = FLAGS_max_lock_fail;
|
||||
|
||||
@@ -102,7 +102,7 @@ void Tcp_Communication::send_receive_tcp_packet_galileo_e1(boost::array<float, N
|
||||
std::cerr << "Exception: " << e.what() << ". Please press Ctrl+C to end the program." << std::endl;
|
||||
std::cin >> controlc;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void Tcp_Communication::send_receive_tcp_packet_gps_l1_ca(boost::array<float, NUM_TX_VARIABLES_GPS_L1_CA> buf, Tcp_Packet_Data* tcp_data_)
|
||||
@@ -136,7 +136,7 @@ void Tcp_Communication::send_receive_tcp_packet_gps_l1_ca(boost::array<float, NU
|
||||
std::cerr << "Exception: " << e.what() << ". Please press Ctrl+C to end the program." << std::endl;
|
||||
std::cin >> controlc;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void Tcp_Communication::close_tcp_connection(size_t d_port_)
|
||||
|
||||
@@ -53,6 +53,8 @@ double phase_unwrap(double phase_rad)
|
||||
return phase_rad;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* FLL four quadrant arctan discriminator:
|
||||
* \f{equation}
|
||||
@@ -64,13 +66,14 @@ double phase_unwrap(double phase_rad)
|
||||
*/
|
||||
double fll_four_quadrant_atan(gr_complex prompt_s1, gr_complex prompt_s2, double t1, double t2)
|
||||
{
|
||||
double cross;
|
||||
double dot;
|
||||
float cross;
|
||||
float dot;
|
||||
dot = prompt_s1.real() * prompt_s2.real() + prompt_s1.imag() * prompt_s2.imag();
|
||||
cross = prompt_s1.real() * prompt_s2.imag() - prompt_s2.real() * prompt_s1.imag();
|
||||
return atan2(cross, dot) / (t2 - t1);
|
||||
return std::atan2(cross, dot) / (t2 - t1);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* FLL differential arctan discriminator:
|
||||
* \f{equation}
|
||||
@@ -80,7 +83,7 @@ double fll_four_quadrant_atan(gr_complex prompt_s1, gr_complex prompt_s2, double
|
||||
*/
|
||||
double fll_diff_atan(gr_complex prompt_s1, gr_complex prompt_s2, double t1, double t2)
|
||||
{
|
||||
double diff_atan = atan(prompt_s2.imag() / prompt_s2.real()) - atan(prompt_s1.imag() / prompt_s1.real());
|
||||
double diff_atan = std::atan(prompt_s2.imag() / prompt_s2.real()) - std::atan(prompt_s1.imag() / prompt_s1.real());
|
||||
if (std::isnan(diff_atan))
|
||||
{
|
||||
diff_atan = 0;
|
||||
@@ -88,6 +91,7 @@ double fll_diff_atan(gr_complex prompt_s1, gr_complex prompt_s2, double t1, doub
|
||||
return phase_unwrap(diff_atan) / (t2 - t1);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* PLL four quadrant arctan discriminator:
|
||||
* \f{equation}
|
||||
|
||||
Reference in New Issue
Block a user