1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-07-01 17:43:02 +00:00

Remove redundant blank lines at the end of a code block

This commit is contained in:
Carles Fernandez 2019-08-17 15:29:31 +02:00
parent 03541bd88b
commit e4c3ee7527
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D
24 changed files with 12 additions and 43 deletions

View File

@ -68,7 +68,6 @@ extern "C"
{ {
clFFT_Forward = -1, clFFT_Forward = -1,
clFFT_Inverse = 1 clFFT_Inverse = 1
} clFFT_Direction; } clFFT_Direction;
// XForm dimension // XForm dimension
@ -77,7 +76,6 @@ extern "C"
clFFT_1D = 0, clFFT_1D = 0,
clFFT_2D = 1, clFFT_2D = 1,
clFFT_3D = 3 clFFT_3D = 3
} clFFT_Dimension; } clFFT_Dimension;
// XForm Data type // XForm Data type

View File

@ -236,8 +236,8 @@ double prange(const obsd_t *obs, const nav_t *nav, const double *azel,
//CHECK IF IT IS STILL NEEDED //CHECK IF IT IS STILL NEEDED
if (opt->ionoopt == IONOOPT_IFLC) if (opt->ionoopt == IONOOPT_IFLC)
{ /* dual-frequency */ {
/* dual-frequency */
if (P1 == 0.0 || P2 == 0.0) if (P1 == 0.0 || P2 == 0.0)
{ {
return 0.0; return 0.0;

View File

@ -1689,7 +1689,6 @@ int res_ppp(int iter __attribute__((unused)), const obsd_t *obs, int n, const do
for (j = 0; j < 2; j++) for (j = 0; j < 2; j++)
{ /* for phase and code */ { /* for phase and code */
if (meas[j] == 0.0) if (meas[j] == 0.0)
{ {
continue; continue;

View File

@ -1657,7 +1657,6 @@ int ddres(rtk_t *rtk, const nav_t *nav, double dt, const double *x,
} }
for (m = 0; m < 4; m++) for (m = 0; m < 4; m++)
{ /* m=0:gps/qzs/sbs, 1:glo, 2:gal, 3:bds */ { /* m=0:gps/qzs/sbs, 1:glo, 2:gal, 3:bds */
for (f = opt->mode > PMODE_DGPS ? 0 : nf; f < nf * 2; f++) for (f = opt->mode > PMODE_DGPS ? 0 : nf; f < nf * 2; f++)
{ {
/* search reference satellite with highest elevation */ /* search reference satellite with highest elevation */
@ -2863,7 +2862,6 @@ int rtkpos(rtk_t *rtk, const obsd_t *obs, int n, const nav_t *nav)
} }
if (opt->mode == PMODE_MOVEB) if (opt->mode == PMODE_MOVEB)
{ /* moving baseline */ { /* moving baseline */
/* estimate position/velocity of base station */ /* estimate position/velocity of base station */
if (!pntpos(obs + nu, nr, nav, &rtk->opt, &solb, nullptr, nullptr, msg)) if (!pntpos(obs + nu, nr, nav, &rtk->opt, &solb, nullptr, nullptr, msg))
{ {

View File

@ -494,7 +494,6 @@ void decodefile(rtksvr_t *svr, int index)
if (svr->format[index] == STRFMT_SP3) if (svr->format[index] == STRFMT_SP3)
{ /* precise ephemeris */ { /* precise ephemeris */
/* read sp3 precise ephemeris */ /* read sp3 precise ephemeris */
readsp3(file, &nav, 0); readsp3(file, &nav, 0);
if (nav.ne <= 0) if (nav.ne <= 0)
@ -517,8 +516,8 @@ void decodefile(rtksvr_t *svr, int index)
rtksvrunlock(svr); rtksvrunlock(svr);
} }
else if (svr->format[index] == STRFMT_RNXCLK) else if (svr->format[index] == STRFMT_RNXCLK)
{ /* precise clock */ {
/* precise clock */
/* read rinex clock */ // Disabled!! /* read rinex clock */ // Disabled!!
if (true /*readrnxc(file, &nav)<=0 */) if (true /*readrnxc(file, &nav)<=0 */)
{ {

View File

@ -955,7 +955,6 @@ int gentcp(tcp_t *tcp, int type, char *msg)
if (type == 0) if (type == 0)
{ /* server socket */ { /* server socket */
#ifdef SVR_REUSEADDR #ifdef SVR_REUSEADDR
/* multiple-use of server socket */ /* multiple-use of server socket */
setsockopt(tcp->sock, SOL_SOCKET, SO_REUSEADDR, (const char *)&opt, setsockopt(tcp->sock, SOL_SOCKET, SO_REUSEADDR, (const char *)&opt,

View File

@ -355,7 +355,6 @@ void tidedisp(gtime_t tutc, const double *rr, int opt, const erp_t *erp,
if (opt & 1) if (opt & 1)
{ /* solid earth tides */ { /* solid earth tides */
/* sun and moon position in ecef */ /* sun and moon position in ecef */
sunmoonpos(tutc, erpv, rs, rm, &gmst); sunmoonpos(tutc, erpv, rs, rm, &gmst);

View File

@ -28,7 +28,6 @@
/* From gnuradio/gnuradio-runtime/lib/math/sine_table.h /* From gnuradio/gnuradio-runtime/lib/math/sine_table.h
* max_error = 2.353084136763606e-06 */ * max_error = 2.353084136763606e-06 */
static const float sine_table_10bits[1 << 10][2] = { static const float sine_table_10bits[1 << 10][2] = {
{2.925817799165007e-09, 7.219194364267018e-09}, {2.925817799165007e-09, 7.219194364267018e-09},
{2.925707643778599e-09, 2.526699001579799e-07}, {2.925707643778599e-09, 2.526699001579799e-07},
{2.925487337153070e-09, 1.191140162167675e-06}, {2.925487337153070e-09, 1.191140162167675e-06},

View File

@ -25,7 +25,6 @@ extern "C"
GANSSAlmanacElement_PR_NOTHING, /* No components present */ GANSSAlmanacElement_PR_NOTHING, /* No components present */
GANSSAlmanacElement_PR_keplerianAlmanacSet, GANSSAlmanacElement_PR_keplerianAlmanacSet,
/* Extensions may appear below */ /* Extensions may appear below */
} GANSSAlmanacElement_PR; } GANSSAlmanacElement_PR;
/* GANSSAlmanacElement */ /* GANSSAlmanacElement */

View File

@ -25,7 +25,6 @@ extern "C"
GANSSClockModel_PR_NOTHING, /* No components present */ GANSSClockModel_PR_NOTHING, /* No components present */
GANSSClockModel_PR_standardClockModelList, GANSSClockModel_PR_standardClockModelList,
/* Extensions may appear below */ /* Extensions may appear below */
} GANSSClockModel_PR; } GANSSClockModel_PR;
/* GANSSClockModel */ /* GANSSClockModel */

View File

@ -25,7 +25,6 @@ extern "C"
GANSSOrbitModel_PR_NOTHING, /* No components present */ GANSSOrbitModel_PR_NOTHING, /* No components present */
GANSSOrbitModel_PR_keplerianSet, GANSSOrbitModel_PR_keplerianSet,
/* Extensions may appear below */ /* Extensions may appear below */
} GANSSOrbitModel_PR; } GANSSOrbitModel_PR;
/* GANSSOrbitModel */ /* GANSSOrbitModel */

View File

@ -33,7 +33,6 @@ extern "C"
RRLP_Component_PR_assistanceDataAck, RRLP_Component_PR_assistanceDataAck,
RRLP_Component_PR_protocolError, RRLP_Component_PR_protocolError,
/* Extensions may appear below */ /* Extensions may appear below */
} RRLP_Component_PR; } RRLP_Component_PR;
/* RRLP-Component */ /* RRLP-Component */

View File

@ -28,7 +28,6 @@ extern "C"
SatStatus_PR_oldSatelliteAndModel, SatStatus_PR_oldSatelliteAndModel,
SatStatus_PR_newNaviModelUC, SatStatus_PR_newNaviModelUC,
/* Extensions may appear below */ /* Extensions may appear below */
} SatStatus_PR; } SatStatus_PR;
/* SatStatus */ /* SatStatus */

View File

@ -29,7 +29,6 @@ extern "C"
CellInfo_PR_wcdmaCell, CellInfo_PR_wcdmaCell,
CellInfo_PR_cdmaCell, CellInfo_PR_cdmaCell,
/* Extensions may appear below */ /* Extensions may appear below */
} CellInfo_PR; } CellInfo_PR;
/* CellInfo */ /* CellInfo */

View File

@ -28,7 +28,6 @@ extern "C"
fmodeSpecificInfo_PR_fdd, fmodeSpecificInfo_PR_fdd,
fmodeSpecificInfo_PR_tdd, fmodeSpecificInfo_PR_tdd,
/* Extensions may appear below */ /* Extensions may appear below */
} fmodeSpecificInfo_PR; } fmodeSpecificInfo_PR;
/* FrequencyInfo */ /* FrequencyInfo */

View File

@ -27,7 +27,6 @@ extern "C"
PosPayLoad_PR_rrcPayload, PosPayLoad_PR_rrcPayload,
PosPayLoad_PR_rrlpPayload, PosPayLoad_PR_rrlpPayload,
/* Extensions may appear below */ /* Extensions may appear below */
} PosPayLoad_PR; } PosPayLoad_PR;
/* PosPayLoad */ /* PosPayLoad */

View File

@ -26,7 +26,6 @@ extern "C"
SETAuthKey_PR_shortKey, SETAuthKey_PR_shortKey,
SETAuthKey_PR_longKey, SETAuthKey_PR_longKey,
/* Extensions may appear below */ /* Extensions may appear below */
} SETAuthKey_PR; } SETAuthKey_PR;
/* SETAuthKey */ /* SETAuthKey */

View File

@ -33,7 +33,6 @@ extern "C"
SETId_PR_nai, SETId_PR_nai,
SETId_PR_iPAddress, SETId_PR_iPAddress,
/* Extensions may appear below */ /* Extensions may appear below */
} SETId_PR; } SETId_PR;
/* SETId */ /* SETId */

View File

@ -27,7 +27,6 @@ extern "C"
SLPAddress_PR_iPAddress, SLPAddress_PR_iPAddress,
SLPAddress_PR_fQDN, SLPAddress_PR_fQDN,
/* Extensions may appear below */ /* Extensions may appear below */
} SLPAddress_PR; } SLPAddress_PR;
/* SLPAddress */ /* SLPAddress */

View File

@ -38,7 +38,6 @@ extern "C"
UlpMessage_PR_msDUMMY2, UlpMessage_PR_msDUMMY2,
UlpMessage_PR_msDUMMY3, UlpMessage_PR_msDUMMY3,
/* Extensions may appear below */ /* Extensions may appear below */
} UlpMessage_PR; } UlpMessage_PR;
/* UlpMessage */ /* UlpMessage */

View File

@ -31,7 +31,6 @@ extern "C"
Velocity_PR_horveluncert, Velocity_PR_horveluncert,
Velocity_PR_horandveruncert, Velocity_PR_horandveruncert,
/* Extensions may appear below */ /* Extensions may appear below */
} Velocity_PR; } Velocity_PR;
/* Velocity */ /* Velocity */

View File

@ -191,7 +191,6 @@ typedef struct supl_rrlp_ctx_s
int cnt_acq; int cnt_acq;
int acq_time; int acq_time;
struct supl_acquis_s acq[MAX_EPHEMERIS]; struct supl_acquis_s acq[MAX_EPHEMERIS];
} supl_assist_t; } supl_assist_t;
typedef struct supl_param_s typedef struct supl_param_s
@ -232,7 +231,6 @@ typedef struct supl_ctx_s
void *buf; void *buf;
size_t size; size_t size;
} slp_session_id; } slp_session_id;
} supl_ctx_t; } supl_ctx_t;
int supl_ctx_new(supl_ctx_t *ctx); int supl_ctx_new(supl_ctx_t *ctx);

View File

@ -1069,14 +1069,12 @@ TEST_F(TrackingPullInTest, ValidationOfResults)
} }
} }
} //end plot } //end plot
} //end acquisition Delay errors loop
} //end acquisition Delay errors loop } //end acquisition Doppler errors loop
} //end acquisition Doppler errors loop
pull_in_results_v_v.push_back(pull_in_results_v); pull_in_results_v_v.push_back(pull_in_results_v);
} //end CN0 LOOP } //end CN0 LOOP
//build the mesh grid
//build the mesh grid
std::vector<double> doppler_error_mesh; std::vector<double> doppler_error_mesh;
std::vector<double> code_delay_error_mesh; std::vector<double> code_delay_error_mesh;
for (unsigned int current_acq_doppler_error_idx = 0; current_acq_doppler_error_idx < acq_doppler_error_hz_values.size(); current_acq_doppler_error_idx++) for (unsigned int current_acq_doppler_error_idx = 0; current_acq_doppler_error_idx < acq_doppler_error_hz_values.size(); current_acq_doppler_error_idx++)

View File

@ -1244,19 +1244,14 @@ TEST_F(TrackingPullInTestFpga, ValidationOfResults)
std::cout << ge.what() << std::endl; std::cout << ge.what() << std::endl;
} }
} }
} //end plot } //end plot
} //end acquisition Delay errors loop
} //end acquisition Delay errors loop
usleep(100000); // give time to the HW to consume all the remaining samples usleep(100000); // give time to the HW to consume all the remaining samples
} //end acquisition Doppler errors loop
} //end acquisition Doppler errors loop
pull_in_results_v_v.push_back(pull_in_results_v); pull_in_results_v_v.push_back(pull_in_results_v);
} //end CN0 LOOP } //end CN0 LOOP
//build the mesh grid
//build the mesh grid
std::vector<double> doppler_error_mesh; std::vector<double> doppler_error_mesh;
std::vector<double> code_delay_error_mesh; std::vector<double> code_delay_error_mesh;
for (unsigned int current_acq_doppler_error_idx = 0; current_acq_doppler_error_idx < acq_doppler_error_hz_values.size(); current_acq_doppler_error_idx++) for (unsigned int current_acq_doppler_error_idx = 0; current_acq_doppler_error_idx < acq_doppler_error_hz_values.size(); current_acq_doppler_error_idx++)