1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-10-30 23:03:05 +00:00

saving temporary changes before merging with usptream next branch

added functions that allow the tests to read the scaling factor used by the FFT and the IFFT during acquisition
This commit is contained in:
Marc Majoral
2018-09-18 11:36:12 +02:00
parent 1b0568e0e9
commit f333c05305
14 changed files with 333 additions and 255 deletions

View File

@@ -509,3 +509,12 @@ void fpga_acquisition::set_single_doppler_flag(unsigned int single_doppler_flag)
d_single_doppler_flag = single_doppler_flag;
}
// this function is only used for the unit tests
void fpga_acquisition::read_fpga_total_scale_factor(uint32_t *total_scale_factor, uint32_t *fw_scale_factor)
{
uint32_t readval = 0;
readval = d_map_base[7];
*total_scale_factor = readval;
readval = d_map_base[8];
*fw_scale_factor = readval;
}