1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-04-09 20:26:46 +00:00

solved a bug: the acquisition device driver was not properly closed if double acquisition was enabled and the second acquisition was not successful.

This commit is contained in:
Marc Majoral 2019-03-27 12:35:36 +01:00
parent 47b405f92d
commit 4164d28abf

View File

@ -293,7 +293,7 @@ void pcps_acquisition_fpga::set_active(bool active)
if (d_test_statistics > d_threshold)
{
d_doppler_center_step_two = static_cast<float>(d_gnss_synchro->Acq_doppler_hz);
acquisition_fpga->open_device();
//acquisition_fpga->open_device();
//boost::chrono::high_resolution_clock::time_point start = boost::chrono::high_resolution_clock::now();
acquisition_core(d_num_doppler_bins_step2, d_doppler_step2, d_doppler_center_step_two - static_cast<float>(floor(d_num_doppler_bins_step2 / 2.0)) * d_doppler_step2);
@ -318,6 +318,7 @@ void pcps_acquisition_fpga::set_active(bool active)
}
else
{
acquisition_fpga->close_device();
d_state = 0;
d_active = false;
send_negative_acquisition();