mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-11-13 05:37:20 +00:00
Remove some warnings in ppp
This commit is contained in:
@@ -69,7 +69,7 @@
|
|||||||
* read data are added to ppp correction data.
|
* read data are added to ppp correction data.
|
||||||
* To clear data, call pppcorr_free()
|
* To clear data, call pppcorr_free()
|
||||||
*-----------------------------------------------------------------------------*/
|
*-----------------------------------------------------------------------------*/
|
||||||
int pppcorr_read(pppcorr_t *corr, const char *file)
|
int pppcorr_read(pppcorr_t *corr __attribute__((unused)), const char *file __attribute__((unused)))
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@@ -80,7 +80,7 @@ int pppcorr_read(pppcorr_t *corr, const char *file)
|
|||||||
* args : pppcorr_t *corr IO ppp correction data
|
* args : pppcorr_t *corr IO ppp correction data
|
||||||
* return : none
|
* return : none
|
||||||
*-----------------------------------------------------------------------------*/
|
*-----------------------------------------------------------------------------*/
|
||||||
void pppcorr_free(pppcorr_t *corr)
|
void pppcorr_free(pppcorr_t *corr __attribute__((unused)))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -94,23 +94,23 @@ void pppcorr_free(pppcorr_t *corr)
|
|||||||
* double *std O standard deviation (m)
|
* double *std O standard deviation (m)
|
||||||
* return : status (1:ok,0:error)
|
* return : status (1:ok,0:error)
|
||||||
*-----------------------------------------------------------------------------*/
|
*-----------------------------------------------------------------------------*/
|
||||||
int pppcorr_trop(const pppcorr_t *corr, gtime_t time, const double *pos,
|
int pppcorr_trop(const pppcorr_t *corr __attribute__((unused)), gtime_t time __attribute__((unused)), const double *pos __attribute__((unused)),
|
||||||
double *trp, double *std)
|
double *trp __attribute__((unused)), double *std __attribute__((unused)))
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int pppcorr_stec(const pppcorr_t *corr, gtime_t time, const double *pos,
|
int pppcorr_stec(const pppcorr_t *corr __attribute__((unused)), gtime_t time __attribute__((unused)), const double *pos __attribute__((unused)),
|
||||||
double *ion, double *std)
|
double *ion __attribute__((unused)), double *std __attribute__((unused)))
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* ambiguity resolution in ppp -----------------------------------------------*/
|
/* ambiguity resolution in ppp -----------------------------------------------*/
|
||||||
int ppp_ar(rtk_t *rtk, const obsd_t *obs, int n, int *exc,
|
int ppp_ar(rtk_t *rtk __attribute__((unused)), const obsd_t *obs __attribute__((unused)), int n __attribute__((unused)), int *exc __attribute__((unused)),
|
||||||
const nav_t *nav, const double *azel, double *x, double *P)
|
const nav_t *nav __attribute__((unused)), const double *azel __attribute__((unused)), double *x __attribute__((unused)), double *P __attribute__((unused)))
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@@ -250,7 +250,7 @@ double yaw_nominal(double beta, double mu)
|
|||||||
|
|
||||||
|
|
||||||
/* yaw-angle of satellite ----------------------------------------------------*/
|
/* yaw-angle of satellite ----------------------------------------------------*/
|
||||||
double yaw_angle(int sat, const char *type, int opt, double beta, double mu,
|
double yaw_angle(int sat __attribute__((unused)), const char *type __attribute__((unused)), int opt __attribute__((unused)), double beta, double mu,
|
||||||
double *yaw)
|
double *yaw)
|
||||||
{
|
{
|
||||||
*yaw = yaw_nominal(beta,mu);
|
*yaw = yaw_nominal(beta,mu);
|
||||||
@@ -342,7 +342,7 @@ int model_phw(gtime_t time, int sat, const char *type, int opt,
|
|||||||
|
|
||||||
|
|
||||||
/* measurement error variance ------------------------------------------------*/
|
/* measurement error variance ------------------------------------------------*/
|
||||||
double varerr(int sat, int sys, double el, int freq, int type,
|
double varerr(int sat __attribute__((unused)), int sys, double el, int freq, int type,
|
||||||
const prcopt_t *opt)
|
const prcopt_t *opt)
|
||||||
{
|
{
|
||||||
double fact = 1.0, sinel = sin(el);
|
double fact = 1.0, sinel = sin(el);
|
||||||
@@ -713,9 +713,9 @@ void udbias_ppp(rtk_t *rtk, const obsd_t *obs, int n, const nav_t *nav)
|
|||||||
|
|
||||||
for (f = 0;f < NF_PPP(&rtk->opt);f++)
|
for (f = 0;f < NF_PPP(&rtk->opt);f++)
|
||||||
{
|
{
|
||||||
|
|
||||||
/* reset phase-bias if expire obs outage counter */
|
/* reset phase-bias if expire obs outage counter */
|
||||||
for (i=0;i<MAXSAT;i++) {
|
for (i = 0;i < MAXSAT;i++)
|
||||||
|
{
|
||||||
if (++rtk->ssat[i].outc[f] > (unsigned int)rtk->opt.maxout ||
|
if (++rtk->ssat[i].outc[f] > (unsigned int)rtk->opt.maxout ||
|
||||||
rtk->opt.modear == ARMODE_INST || clk_jump)
|
rtk->opt.modear == ARMODE_INST || clk_jump)
|
||||||
{
|
{
|
||||||
@@ -953,7 +953,7 @@ int model_iono(gtime_t time, const double *pos, const double *azel,
|
|||||||
/* constraint to local correction --------------------------------------------*/
|
/* constraint to local correction --------------------------------------------*/
|
||||||
int const_corr(const obsd_t *obs, int n, const int *exc,
|
int const_corr(const obsd_t *obs, int n, const int *exc,
|
||||||
const nav_t *nav, const double *x, const double *pos,
|
const nav_t *nav, const double *x, const double *pos,
|
||||||
const double *azel, rtk_t *rtk, double *v, double *H,
|
const double *azel __attribute__((unused)), rtk_t *rtk, double *v, double *H,
|
||||||
double *var)
|
double *var)
|
||||||
{
|
{
|
||||||
gtime_t time = obs[0].time;
|
gtime_t time = obs[0].time;
|
||||||
@@ -1056,8 +1056,8 @@ int ppp_res(int post, const obsd_t *obs, int n, const double *rs,
|
|||||||
rtk->ssat[sat-1].phw, L, P, &Lc, &Pc);
|
rtk->ssat[sat-1].phw, L, P, &Lc, &Pc);
|
||||||
|
|
||||||
/* stack phase and code residuals {L1, P1, L2, P2, ...} */
|
/* stack phase and code residuals {L1, P1, L2, P2, ...} */
|
||||||
for (j=0;j<2*NF_PPP(opt);j++) {
|
for (j = 0;j < 2*NF_PPP(opt);j++)
|
||||||
|
{
|
||||||
dcb = bias = 0.0;
|
dcb = bias = 0.0;
|
||||||
|
|
||||||
if (opt->ionoopt == IONOOPT_IFLC)
|
if (opt->ionoopt == IONOOPT_IFLC)
|
||||||
|
|||||||
@@ -723,8 +723,8 @@ void detslp_gf_L1L5(rtk_t *rtk, const obsd_t *obs, int i, int j,
|
|||||||
|
|
||||||
|
|
||||||
/* detect cycle slip by doppler and phase difference -------------------------*/
|
/* detect cycle slip by doppler and phase difference -------------------------*/
|
||||||
void detslp_dop(rtk_t *rtk, const obsd_t *obs, int i, int rcv,
|
void detslp_dop(rtk_t *rtk __attribute__((unused)), const obsd_t *obs __attribute__((unused)), int i __attribute__((unused)), int rcv __attribute__((unused)),
|
||||||
const nav_t *nav)
|
const nav_t *nav __attribute__((unused)))
|
||||||
{
|
{
|
||||||
/* detection with doppler disabled because of clock-jump issue (v.2.3.0) */
|
/* detection with doppler disabled because of clock-jump issue (v.2.3.0) */
|
||||||
#if 0
|
#if 0
|
||||||
@@ -1517,6 +1517,7 @@ void restamb(rtk_t *rtk, const double *bias, int nb __attribute((unused)), doubl
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* hold integer ambiguity ----------------------------------------------------*/
|
/* hold integer ambiguity ----------------------------------------------------*/
|
||||||
void holdamb(rtk_t *rtk, const double *xa)
|
void holdamb(rtk_t *rtk, const double *xa)
|
||||||
{
|
{
|
||||||
@@ -1564,6 +1565,7 @@ void holdamb(rtk_t *rtk, const double *xa)
|
|||||||
free(v); free(H);
|
free(v); free(H);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* resolve integer ambiguity by LAMBDA ---------------------------------------*/
|
/* resolve integer ambiguity by LAMBDA ---------------------------------------*/
|
||||||
int resamb_LAMBDA(rtk_t *rtk, double *bias, double *xa)
|
int resamb_LAMBDA(rtk_t *rtk, double *bias, double *xa)
|
||||||
{
|
{
|
||||||
@@ -1659,6 +1661,7 @@ int resamb_LAMBDA(rtk_t *rtk, double *bias, double *xa)
|
|||||||
return nb; /* number of ambiguities */
|
return nb; /* number of ambiguities */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* validation of solution ----------------------------------------------------*/
|
/* validation of solution ----------------------------------------------------*/
|
||||||
int valpos(rtk_t *rtk, const double *v, const double *R, const int *vflg,
|
int valpos(rtk_t *rtk, const double *v, const double *R, const int *vflg,
|
||||||
int nv, double thres)
|
int nv, double thres)
|
||||||
@@ -1707,6 +1710,7 @@ int valpos(rtk_t *rtk, const double *v, const double *R, const int *vflg,
|
|||||||
return stat;
|
return stat;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* relative positioning ------------------------------------------------------*/
|
/* relative positioning ------------------------------------------------------*/
|
||||||
int relpos(rtk_t *rtk, const obsd_t *obs, int nu, int nr,
|
int relpos(rtk_t *rtk, const obsd_t *obs, int nu, int nr,
|
||||||
const nav_t *nav)
|
const nav_t *nav)
|
||||||
@@ -1908,6 +1912,7 @@ int relpos(rtk_t *rtk, const obsd_t *obs, int nu, int nr,
|
|||||||
return stat != SOLQ_NONE;
|
return stat != SOLQ_NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* initialize rtk control ------------------------------------------------------
|
/* initialize rtk control ------------------------------------------------------
|
||||||
* initialize rtk control struct
|
* initialize rtk control struct
|
||||||
* args : rtk_t *rtk IO rtk control/result struct
|
* args : rtk_t *rtk IO rtk control/result struct
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ const double TTOL_MOVEB = (1.0+2*DTTOL);
|
|||||||
|
|
||||||
|
|
||||||
static int resamb_WLNL(rtk_t *rtk __attribute((unused)), const obsd_t *obs __attribute((unused)), const int *sat __attribute((unused)),
|
static int resamb_WLNL(rtk_t *rtk __attribute((unused)), const obsd_t *obs __attribute((unused)), const int *sat __attribute((unused)),
|
||||||
const int *iu __attribute((unused)), const int *ir __attribute((unused)), int ns, const nav_t *nav __attribute((unused)),
|
const int *iu __attribute((unused)), const int *ir __attribute((unused)), int ns __attribute__((unused)), const nav_t *nav __attribute((unused)),
|
||||||
const double *azel __attribute((unused))) {return 0;}
|
const double *azel __attribute((unused))) {return 0;}
|
||||||
static int resamb_TCAR(rtk_t *rtk __attribute((unused)), const obsd_t *obs __attribute((unused)), const int *sat __attribute((unused)),
|
static int resamb_TCAR(rtk_t *rtk __attribute((unused)), const obsd_t *obs __attribute((unused)), const int *sat __attribute((unused)),
|
||||||
const int *iu __attribute((unused)), const int *ir __attribute((unused)), int ns __attribute((unused)), const nav_t *nav __attribute((unused)),
|
const int *iu __attribute((unused)), const int *ir __attribute((unused)), int ns __attribute((unused)), const nav_t *nav __attribute((unused)),
|
||||||
|
|||||||
Reference in New Issue
Block a user