mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-14 12:10:34 +00:00
Use auto
This commit is contained in:
parent
17b1ef8b98
commit
5e42795677
@ -237,7 +237,7 @@ GalileoE1DllPllVemlTrackingFpga::GalileoE1DllPllVemlTrackingFpga(
|
||||
// The code is generated as a series of 1s and -1s. In order to store the values using only one bit, a -1 is stored as a 0 in the FPGA
|
||||
for (uint32_t s = 0; s < 2 * GALILEO_E1_B_CODE_LENGTH_CHIPS; s++)
|
||||
{
|
||||
int32_t tmp_value = static_cast<int32_t>(ca_codes_f[s]);
|
||||
auto tmp_value = static_cast<int32_t>(ca_codes_f[s]);
|
||||
if (tmp_value < 0)
|
||||
{
|
||||
tmp_value = 0;
|
||||
@ -260,7 +260,7 @@ GalileoE1DllPllVemlTrackingFpga::GalileoE1DllPllVemlTrackingFpga(
|
||||
// The code is generated as a series of 1s and -1s. In order to store the values using only one bit, a -1 is stored as a 0 in the FPGA
|
||||
for (uint32_t s = 0; s < 2 * GALILEO_E1_B_CODE_LENGTH_CHIPS; s++)
|
||||
{
|
||||
int32_t tmp_value = static_cast<int32_t>(ca_codes_f[s]);
|
||||
auto tmp_value = static_cast<int32_t>(ca_codes_f[s]);
|
||||
if (tmp_value < 0)
|
||||
{
|
||||
tmp_value = 0;
|
||||
|
@ -225,7 +225,7 @@ GalileoE5aDllPllTrackingFpga::GalileoE5aDllPllTrackingFpga(
|
||||
// The code is generated as a series of 1s and -1s. In order to store the values using only one bit, a -1 is stored as a 0 in the FPGA
|
||||
for (uint32_t s = 0; s < code_length_chips; s++)
|
||||
{
|
||||
int32_t tmp_value = static_cast<int32_t>(aux_code[s].imag());
|
||||
auto tmp_value = static_cast<int32_t>(aux_code[s].imag());
|
||||
if (tmp_value < 0)
|
||||
{
|
||||
tmp_value = 0;
|
||||
@ -247,7 +247,7 @@ GalileoE5aDllPllTrackingFpga::GalileoE5aDllPllTrackingFpga(
|
||||
// The code is generated as a series of 1s and -1s. In order to store the values using only one bit, a -1 is stored as a 0 in the FPGA
|
||||
for (uint32_t s = 0; s < code_length_chips; s++)
|
||||
{
|
||||
int32_t tmp_value = static_cast<int32_t>(aux_code[s].real());
|
||||
auto tmp_value = static_cast<int32_t>(aux_code[s].real());
|
||||
if (tmp_value < 0)
|
||||
{
|
||||
tmp_value = 0;
|
||||
|
@ -242,7 +242,7 @@ GpsL5DllPllTrackingFpga::GpsL5DllPllTrackingFpga(
|
||||
// The code is generated as a series of 1s and -1s. In order to store the values using only one bit, a -1 is stored as a 0 in the FPGA
|
||||
for (uint32_t s = 0; s < code_length_chips; s++)
|
||||
{
|
||||
int32_t tmp_value = static_cast<int32_t>(tracking_code[s]);
|
||||
auto tmp_value = static_cast<int32_t>(tracking_code[s]);
|
||||
if (tmp_value < 0)
|
||||
{
|
||||
tmp_value = 0;
|
||||
@ -266,7 +266,7 @@ GpsL5DllPllTrackingFpga::GpsL5DllPllTrackingFpga(
|
||||
// The code is generated as a series of 1s and -1s. In order to store the values using only one bit, a -1 is stored as a 0 in the FPGA
|
||||
for (uint32_t s = 0; s < code_length_chips; s++)
|
||||
{
|
||||
int32_t tmp_value = static_cast<int32_t>(tracking_code[s]);
|
||||
auto tmp_value = static_cast<int32_t>(tracking_code[s]);
|
||||
if (tmp_value < 0)
|
||||
{
|
||||
tmp_value = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user