@@ -73,6 +73,8 @@ static const char *help[]={
7373" rover latitude/longitude/height for fixed or ppp-fixed mode" ,
7474" -y level output solution status (0:off,1:states,2:residuals) [0]" ,
7575" -x level debug trace level (0:off) [0]" ,
76+ " --rover list rover names for processing, separated by a space" ,
77+ " --base list base names for processing, separated by a space" ,
7678" --version display release version" ,
7779};
7880/* show message --------------------------------------------------------------*/
@@ -103,6 +105,7 @@ int main(int argc, char **argv)
103105 double tint = 0.0 ,es []= {2000 ,1 ,1 ,0 ,0 ,0 },ee []= {2000 ,12 ,31 ,23 ,59 ,59 },pos [3 ];
104106 int i ,j ,n ,ret ;
105107 const char * infile [MAXFILE ],* outfile = "" ,* p ;
108+ const char * rover = "" , * base = "" ;
106109
107110 prcopt .mode = PMODE_KINEMA ;
108111 prcopt .navsys = 0 ;
@@ -178,6 +181,8 @@ int main(int argc, char **argv)
178181 pos2ecef (pos ,prcopt .rb );
179182 matcpy (prcopt .ru ,prcopt .rb ,3 ,1 );
180183 }
184+ else if (!strcmp (argv [i ],"--rover" )&& i + 1 < argc ) rover = argv [++ i ];
185+ else if (!strcmp (argv [i ],"--base" )&& i + 1 < argc ) base = argv [++ i ];
181186 else if (!strcmp (argv [i ],"-y" )&& i + 1 < argc ) solopt .sstat = atoi (argv [++ i ]);
182187 else if (!strcmp (argv [i ],"-x" )&& i + 1 < argc ) solopt .trace = atoi (argv [++ i ]);
183188 else if (!strcmp (argv [i ], "--version" )) {
@@ -200,7 +205,7 @@ int main(int argc, char **argv)
200205 traceopen (filopt .trace );
201206 tracelevel (solopt .trace );
202207 }
203- ret = postpos (ts ,te ,tint ,0.0 ,& prcopt ,& solopt ,& filopt ,infile ,n ,outfile ,"" , "" );
208+ ret = postpos (ts ,te ,tint ,0.0 ,& prcopt ,& solopt ,& filopt ,infile ,n ,outfile ,rover , base );
204209
205210 if (!ret ) fprintf (stderr ,"%40s\r" ,"" );
206211 return ret ?EXIT_FAILURE :0 ;
0 commit comments