mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-14 20:20:35 +00:00
closed the acquisition device driver in the proper way + updated fpga block expponent.
This commit is contained in:
parent
7fc8d53508
commit
bf3f66278f
@ -180,7 +180,7 @@ GalileoE1PcpsAmbiguousAcquisitionFpga::GalileoE1PcpsAmbiguousAcquisitionFpga(
|
|||||||
acq_parameters.make_2_steps = configuration_->property(role + ".make_two_steps", false);
|
acq_parameters.make_2_steps = configuration_->property(role + ".make_two_steps", false);
|
||||||
acq_parameters.max_num_acqs = configuration_->property(role + ".max_num_acqs", 2);
|
acq_parameters.max_num_acqs = configuration_->property(role + ".max_num_acqs", 2);
|
||||||
// reference for the FPGA FFT-IFFT attenuation factor
|
// reference for the FPGA FFT-IFFT attenuation factor
|
||||||
acq_parameters.total_block_exp = configuration_->property(role + ".total_block_exp", 12);
|
acq_parameters.total_block_exp = configuration_->property(role + ".total_block_exp", 13);
|
||||||
|
|
||||||
acquisition_fpga_ = pcps_make_acquisition_fpga(acq_parameters);
|
acquisition_fpga_ = pcps_make_acquisition_fpga(acq_parameters);
|
||||||
|
|
||||||
|
@ -302,6 +302,7 @@ void pcps_acquisition_fpga::set_active(bool active)
|
|||||||
}
|
}
|
||||||
num_second_acq = num_second_acq + 1;
|
num_second_acq = num_second_acq + 1;
|
||||||
}
|
}
|
||||||
|
acquisition_fpga->close_device();
|
||||||
if (d_test_statistics <= d_threshold)
|
if (d_test_statistics <= d_threshold)
|
||||||
{
|
{
|
||||||
d_state = 0;
|
d_state = 0;
|
||||||
|
@ -177,7 +177,7 @@ void Fpga_Acquisition::run_acquisition(void)
|
|||||||
{
|
{
|
||||||
// enable interrupts
|
// enable interrupts
|
||||||
int32_t reenable = 1;
|
int32_t reenable = 1;
|
||||||
int32_t disable_int = 0;
|
//int32_t disable_int = 0;
|
||||||
ssize_t nbytes = TEMP_FAILURE_RETRY(write(d_fd, reinterpret_cast<void *>(&reenable), sizeof(int32_t)));
|
ssize_t nbytes = TEMP_FAILURE_RETRY(write(d_fd, reinterpret_cast<void *>(&reenable), sizeof(int32_t)));
|
||||||
if (nbytes != sizeof(int32_t))
|
if (nbytes != sizeof(int32_t))
|
||||||
{
|
{
|
||||||
@ -197,11 +197,11 @@ void Fpga_Acquisition::run_acquisition(void)
|
|||||||
std::cout << "acquisition module Interrupt number " << irq_count << std::endl;
|
std::cout << "acquisition module Interrupt number " << irq_count << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
nbytes = TEMP_FAILURE_RETRY(write(d_fd, reinterpret_cast<void *>(&disable_int), sizeof(int32_t)));
|
// nbytes = TEMP_FAILURE_RETRY(write(d_fd, reinterpret_cast<void *>(&disable_int), sizeof(int32_t)));
|
||||||
if (nbytes != sizeof(int32_t))
|
// if (nbytes != sizeof(int32_t))
|
||||||
{
|
// {
|
||||||
std::cerr << "Error disabling interruptions in the FPGA." << std::endl;
|
// std::cerr << "Error disabling interruptions in the FPGA." << std::endl;
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user