[FOSS-GPS] Single positioning in pntpos.c

nkvu khacvu1092 at gmail.com
Fri Feb 21 19:40:18 PST 2014

Hi everybody, I am trying to understand code in RTKLib, I have a problem
about pntpos.c when I choose Single mode, that is* estpos* function:

/* estimate receiver position
static int estpos(const obsd_t *obs, int n, const double *rs, const double
                  const double *vare, const int *svh, const nav_t *nav,
                  const prcopt_t *opt, sol_t *sol, double *azel, int *vsat,
                  double *resp, char *msg)
    double x[5]={0},dx[5],Q[25],*v,*H,*var,sig;
    int i,j,k,info,stat,nx,nv;
    trace(3,"estpos  : n=%d\n",n);
    v=mat(n,1); H=mat(5,n); var=mat(n,1);
   * for (i=0;i<3;i++) x[i]=sol->rr[i];*
    for (i=0;i<MAXITR;i++) {
        /* pseudorange residuals */
I think we want to calculate rr[] (position of rover), so, why we have
statement here: *for (i=0;i<3;i++) x[i]=sol->rr[i];*

Anybody help me? thanks so much!

View this message in context: http://open-source-gps-related-discussion-and-support.1099874.n2.nabble.com/Single-positioning-in-pntpos-c-tp7572821.html
Sent from the Open Source GPS-related discussion and support mailing list archive at Nabble.com.

More information about the FOSS-GPS mailing list