mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-07-06 12:02:55 +00:00
Apply clang-tidy checks
This commit is contained in:
parent
4d60ea2e5a
commit
992fddcc46
@ -36,6 +36,7 @@
|
|||||||
#include <gnuradio/top_block.h>
|
#include <gnuradio/top_block.h>
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
|
#include <utility>
|
||||||
#ifdef GR_GREATER_38
|
#ifdef GR_GREATER_38
|
||||||
#include <gnuradio/analog/sig_source.h>
|
#include <gnuradio/analog/sig_source.h>
|
||||||
#else
|
#else
|
||||||
@ -203,7 +204,7 @@ void GpsL1CaPcpsAcquisitionTestFpga_msg_rx::msg_handler_events(pmt::pmt_t msg)
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
int64_t message = pmt::to_long(msg);
|
int64_t message = pmt::to_long(std::move(msg));
|
||||||
rx_message = message;
|
rx_message = message;
|
||||||
}
|
}
|
||||||
catch (boost::bad_any_cast &e)
|
catch (boost::bad_any_cast &e)
|
||||||
@ -225,9 +226,7 @@ GpsL1CaPcpsAcquisitionTestFpga_msg_rx::GpsL1CaPcpsAcquisitionTestFpga_msg_rx() :
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
GpsL1CaPcpsAcquisitionTestFpga_msg_rx::~GpsL1CaPcpsAcquisitionTestFpga_msg_rx()
|
GpsL1CaPcpsAcquisitionTestFpga_msg_rx::~GpsL1CaPcpsAcquisitionTestFpga_msg_rx() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
class GpsL1CaPcpsAcquisitionTestFpga : public ::testing::Test
|
class GpsL1CaPcpsAcquisitionTestFpga : public ::testing::Test
|
||||||
@ -241,9 +240,7 @@ protected:
|
|||||||
gnss_synchro = Gnss_Synchro();
|
gnss_synchro = Gnss_Synchro();
|
||||||
}
|
}
|
||||||
|
|
||||||
~GpsL1CaPcpsAcquisitionTestFpga()
|
~GpsL1CaPcpsAcquisitionTestFpga() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void init();
|
void init();
|
||||||
|
|
||||||
@ -385,7 +382,7 @@ TEST_F(GpsL1CaPcpsAcquisitionTestFpga, ValidationOfResults)
|
|||||||
ASSERT_EQ(1, msg_rx->rx_message) << "Acquisition failure. Expected message: 1=ACQ SUCCESS.";
|
ASSERT_EQ(1, msg_rx->rx_message) << "Acquisition failure. Expected message: 1=ACQ SUCCESS.";
|
||||||
|
|
||||||
double delay_error_samples = std::abs(expected_delay_samples - gnss_synchro.Acq_delay_samples);
|
double delay_error_samples = std::abs(expected_delay_samples - gnss_synchro.Acq_delay_samples);
|
||||||
float delay_error_chips = static_cast<float>(delay_error_samples * 1023 / 4000);
|
auto delay_error_chips = static_cast<float>(delay_error_samples * 1023 / 4000);
|
||||||
double doppler_error_hz = std::abs(expected_doppler_hz - gnss_synchro.Acq_doppler_hz);
|
double doppler_error_hz = std::abs(expected_doppler_hz - gnss_synchro.Acq_doppler_hz);
|
||||||
|
|
||||||
EXPECT_LE(doppler_error_hz, 666) << "Doppler error exceeds the expected value: 666 Hz = 2/(3*integration period)";
|
EXPECT_LE(doppler_error_hz, 666) << "Doppler error exceeds the expected value: 666 Hz = 2/(3*integration period)";
|
||||||
|
@ -143,7 +143,7 @@ void sending_thread(gr::top_block_sptr top_block, const char *file_name)
|
|||||||
usleep(FIVE_SECONDS); // wait for some time to give time to the other thread to program the device
|
usleep(FIVE_SECONDS); // wait for some time to give time to the other thread to program the device
|
||||||
|
|
||||||
//send_tracking_gps_input_samples(dma_descr, rx_signal_file, file_length);
|
//send_tracking_gps_input_samples(dma_descr, rx_signal_file, file_length);
|
||||||
send_tracking_gps_input_samples(rx_signal_file, file_length, std::move(top_block));
|
send_tracking_gps_input_samples(rx_signal_file, file_length, top_block);
|
||||||
|
|
||||||
fclose(rx_signal_file);
|
fclose(rx_signal_file);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user