mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-11-11 21:03:07 +00:00
Miscelaneous clang-tidy fixes
This commit is contained in:
@@ -645,7 +645,7 @@ int sbsreadmsgt(const char *file, int sel, gtime_t ts, gtime_t te,
|
||||
for (i = 0; i < n; i++)
|
||||
{
|
||||
if (!(ext = strrchr(efiles[i], '.'))) continue;
|
||||
if (strcmp(ext, ".sbs") != 0 && strcmp(ext, ".SBS") &&
|
||||
if (strcmp(ext, ".sbs") != 0 && strcmp(ext, ".SBS") != 0 &&
|
||||
strcmp(ext, ".ems") != 0 && strcmp(ext, ".EMS") != 0) continue;
|
||||
|
||||
readmsgs(efiles[i], sel, ts, te, sbs);
|
||||
|
||||
@@ -682,7 +682,7 @@ void decode_solopt(char *buff, solopt_t *opt)
|
||||
|
||||
trace(4, "decode_solhead: buff=%s\n", buff);
|
||||
|
||||
if (strncmp(buff, COMMENTH, 1) != 0 && strncmp(buff, "+", 1)) return;
|
||||
if (strncmp(buff, COMMENTH, 1) != 0 && strncmp(buff, "+", 1) != 0) return;
|
||||
|
||||
if (strstr(buff, "GPST"))
|
||||
opt->times = TIMES_GPST;
|
||||
|
||||
@@ -141,7 +141,7 @@ galileo_telemetry_decoder_cc::galileo_telemetry_decoder_cc(
|
||||
d_samples_per_symbol = 0U;
|
||||
d_PRN_code_period_ms = 0U;
|
||||
d_required_symbols = 0U;
|
||||
d_frame_length_symbols = 0.0;
|
||||
d_frame_length_symbols = 0U;
|
||||
CodeLength = 0;
|
||||
DataLength = 0;
|
||||
std::cout << "Galileo unified telemetry decoder error: Unknown frame type " << std::endl;
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
|
||||
|
||||
#ifndef _rotl
|
||||
#define _rotl(X, N) ((X << N) ^ (X >> (32 - N))) // Used in the parity check algorithm
|
||||
#define _rotl(X, N) (((X) << (N)) ^ ((X) >> (32 - (N)))) // Used in the parity check algorithm
|
||||
#endif
|
||||
|
||||
using google::LogMessage;
|
||||
|
||||
@@ -95,15 +95,15 @@ void v27_init(v27_t *v, v27_decision_t *decisions, unsigned int decisions_count,
|
||||
unsigned int metric,m0,m1,decision;\
|
||||
metric = (v->poly->c0[i] ^ sym0) + (v->poly->c1[i] ^ sym1);\
|
||||
m0 = v->old_metrics[i] + metric;\
|
||||
m1 = v->old_metrics[i+32] + (510 - metric);\
|
||||
m1 = v->old_metrics[(i)+32] + (510 - metric);\
|
||||
decision = (signed int)(m0-m1) > 0;\
|
||||
v->new_metrics[2*i] = decision ? m1 : m0;\
|
||||
d->w[i/16] |= decision << ((2*i)&31);\
|
||||
v->new_metrics[2*(i)] = decision ? m1 : m0;\
|
||||
d->w[(i)/16] |= decision << ((2*(i))&31);\
|
||||
m0 -= (metric+metric-510);\
|
||||
m1 += (metric+metric-510);\
|
||||
decision = (signed int)(m0-m1) > 0;\
|
||||
v->new_metrics[2*i+1] = decision ? m1 : m0;\
|
||||
d->w[i/16] |= decision << ((2*i+1)&31);\
|
||||
v->new_metrics[2*(i)+1] = decision ? m1 : m0;\
|
||||
d->w[(i)/16] |= decision << ((2*(i)+1)&31);\
|
||||
}
|
||||
|
||||
/** Update a v27_t decoder with a block of symbols.
|
||||
|
||||
Reference in New Issue
Block a user