Hello Tomoji,

"Tomoji TAKASU" <[email protected]> writes:
> This headr file is for linking intel MKL (intel version
> LAPACK/BLAS). RTKLIB can be built with MKL with
> compile option -DMKL for fast matrix computation.

Good to hear it is optional.

Btw, can you consider the attached patch that adds --help option to
rtkrcv? The debian package uses help2man tool to generate manual pages
automatically from --help output so that they stay up-to-date. All the
other tools in the package had --help support, this one just was missing.

Description: Upstream changes introduced in version 2.4.0-1
 This patch has been created by dpkg-source during the package build.
 Here's the last changelog entry, hopefully it gives details on why
 those changes were made:
 .
 rtklib (2.4.0-1) unstable; urgency=low
 .
   * New upstream release.
 .
 The person named in the Author field signed this changelog entry.
Author: Timo Juhani Lindfors <[email protected]>

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: http://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: <YYYY-MM-DD>

--- /dev/null
+++ rtklib-2.4.0/rtkrcv.nav
@@ -0,0 +1 @@
+IONUTC,0.00000000000000E+00,0.00000000000000E+00,0.00000000000000E+00,0.00000000000000E+00,0.00000000000000E+00,0.00000000000000E+00,0.00000000000000E+00,0.00000000000000E+00,0.00000000000000E+00,0.00000000000000E+00,0.00000000000000E+00,0.00000000000000E+00,0
\ No newline at end of file
--- rtklib-2.4.0.orig/app/rtkrcv/rtkrcv.c
+++ rtklib-2.4.0/app/rtkrcv/rtkrcv.c
@@ -1569,106 +1569,117 @@ static void cmdshell(vt_t *vt)
     }
     trace(3,"cmdshell: exit\n");
 }
-/* rtkrcv main -----------------------------------------------------------------
-* sysnopsis
-*     rtkrcv [-s][-p port|-d dev][-o file][-t level]
-*
-* description
-*     A command line version of the real-time positioning AP by rtklib. To start
-*     or stop RTK server, to configure options or to print solution/status,
-*     login a console and input commands. As default, stdin/stdout are used for
-*     the console. Use -p option for network login with telnet protocol. To show
-*     the available commands, type ? or help on the console. The initial 
-*     processing options are loaded from default file rtkrcv.conf. To change the
-*     file, use -o option. To configure the processing options, edit the options
-*     file or use set, load or save command on the console. To shutdown the
-*     program, use shutdown command on the console or send USR2 signal to the
-*     process.
-*
-* option
-*     -s         start RTK server on program startup
-*     -p port    port number for telnet console
-*     -m port    port number for monitor stream
-*     -d dev     terminal device for console
-*     -o file    processing options file       
-*     -r level   output solution status file (0:off,1:states,2:residuals)
-*     -t level   debug trace level (0:off,1-5:on)
-*
-* command
-*     start
-*       Start RTK server. No need the command if the program runs with -s
-*       option.
-*
-*     stop
-*       Stop RTK server.
-*
-*     restart
-*       Restart RTK server. If the processing options are set, execute the
-*       command to enable the changes.
-*
-*     solution [cycle]
-*       Show solutions. Without option, only one solution is shown. With
-*       option, the soluiton is displayed at intervals of cycle (s). To stop
-*       cyclic display, send break (ctr-C).
-*
-*     status [cycle]
-*       Show RTK status. Use option cycle for cyclic display.
-*
-*     satellite [cycle]
-*       Show satellite status. Use option cycle for cyclic display.
-*
-*     observ [cycle]
-*       Show observation data. Use option cycle for cyclic display.
-*
-*     navidata [cycle]
-*       Show navigation data. Use option cycle for cyclic display.
-*
-*     stream [cycle]
-*       Show stream status. Use option cycle for cyclic display.
-*
-*     error
-*       Show error/warning messages. To stop messages, send break (ctr-C).
-*
-*     option [opt]
-*       Show the values of processing options. Without option, all options are
-*       displayed. With option, only pattern-matched options are displayed.
-*
-*     set opt [val]
-*       Set the value of a processing option to val. With out option val,
-*       prompt message is shown to input the value. The change of the 
-*       processing option is not enabled before RTK server is restarted.
-*
-*     load [file]
-*       Load processing options from file. Without option, default file
-*       rtkrcv.conf is used. To enable the changes, restart RTK server.
-*
-*     save [file]
-*       Save current processing optons to file. Without option, default file
-*       rtkrcv.conf is used.
-*
-*     log [file|off]
-*       Record console log to file. To stop recording the log, use option off.
-*
-*     help|? [path]
-*       Show the command list. With option path, the stream path options are
-*       shown.
-*
-*     exit
-*       Exit and logout console. The status of RTK server is not affected by
-*       the command.
-*
-*     shutdown
-*       Shutdown RTK server and exit the program.
-*
-*     !command [arg...]
-*       Execute command by the operating system shell. Do not use the
-*       interactive command.
-*
-* notes
-*     Short form of a command is allowed. In case of the short form, the
-*     command is distinguished according to header characters.
-*     
-*-----------------------------------------------------------------------------*/
+/* help text -----------------------------------------------------------------*/
+static const char *help[]={
+"",
+"sysnopsis",
+"     rtkrcv [-s][-p port|-d dev][-o file][-t level]",
+"",
+" description",
+"     A command line version of the real-time positioning AP by rtklib. To start",
+"     or stop RTK server, to configure options or to print solution/status,",
+"     login a console and input commands. As default, stdin/stdout are used for",
+"     the console. Use -p option for network login with telnet protocol. To show",
+"     the available commands, type ? or help on the console. The initial ",
+"     processing options are loaded from default file rtkrcv.conf. To change the",
+"     file, use -o option. To configure the processing options, edit the options",
+"     file or use set, load or save command on the console. To shutdown the",
+"     program, use shutdown command on the console or send USR2 signal to the",
+"     process.",
+"",
+" option",
+"     -s         start RTK server on program startup",
+"     -p port    port number for telnet console",
+"     -m port    port number for monitor stream",
+"     -d dev     terminal device for console",
+"     -o file    processing options file       ",
+"     -r level   output solution status file (0:off,1:states,2:residuals)",
+"     -t level   debug trace level (0:off,1-5:on)",
+"     -h         print help",
+"",
+" command",
+"     start",
+"       Start RTK server. No need the command if the program runs with -s",
+"       option.",
+"",
+"     stop",
+"       Stop RTK server.",
+"",
+"     restart",
+"       Restart RTK server. If the processing options are set, execute the",
+"       command to enable the changes.",
+"",
+"     solution [cycle]",
+"       Show solutions. Without option, only one solution is shown. With",
+"       option, the soluiton is displayed at intervals of cycle (s). To stop",
+"       cyclic display, send break (ctr-C).",
+"",
+"     status [cycle]",
+"       Show RTK status. Use option cycle for cyclic display.",
+"",
+"     satellite [cycle]",
+"       Show satellite status. Use option cycle for cyclic display.",
+"",
+"     observ [cycle]",
+"       Show observation data. Use option cycle for cyclic display.",
+"",
+"     navidata [cycle]",
+"       Show navigation data. Use option cycle for cyclic display.",
+"",
+"     stream [cycle]",
+"       Show stream status. Use option cycle for cyclic display.",
+"",
+"     error",
+"       Show error/warning messages. To stop messages, send break (ctr-C).",
+"",
+"     option [opt]",
+"       Show the values of processing options. Without option, all options are",
+"       displayed. With option, only pattern-matched options are displayed.",
+"",
+"     set opt [val]",
+"       Set the value of a processing option to val. With out option val,",
+"       prompt message is shown to input the value. The change of the ",
+"       processing option is not enabled before RTK server is restarted.",
+"",
+"     load [file]",
+"       Load processing options from file. Without option, default file",
+"       rtkrcv.conf is used. To enable the changes, restart RTK server.",
+"",
+"     save [file]",
+"       Save current processing optons to file. Without option, default file",
+"       rtkrcv.conf is used.",
+"",
+"     log [file|off]",
+"       Record console log to file. To stop recording the log, use option off.",
+"",
+"     help|? [path]",
+"       Show the command list. With option path, the stream path options are",
+"       shown.",
+"",
+"     exit",
+"       Exit and logout console. The status of RTK server is not affected by",
+"       the command.",
+"",
+"     shutdown",
+"       Shutdown RTK server and exit the program.",
+"",
+"     !command [arg...]",
+"       Execute command by the operating system shell. Do not use the",
+"       interactive command.",
+"",
+" notes",
+"     Short form of a command is allowed. In case of the short form, the",
+"     command is distinguished according to header characters.",
+"",
+};
+/* print help ----------------------------------------------------------------*/
+static void printhelp(void)
+{
+    int i;
+    for (i=0;i<sizeof(help)/sizeof(*help);i++) fprintf(stderr,"%s\n",help[i]);
+    exit(0);
+}
+/*-----------------------------------------------------------------------------*/
 int main(int argc, char **argv)
 {
     vt_t vt={0};
@@ -1683,6 +1694,7 @@ int main(int argc, char **argv)
         else if (!strcmp(argv[i],"-o")&&i+1<argc) strcpy(file,argv[++i]);
         else if (!strcmp(argv[i],"-r")&&i+1<argc) outstat=atoi(argv[++i]);
         else if (!strcmp(argv[i],"-t")&&i+1<argc) trace=atoi(argv[++i]);
+        else if (*argv[i]=='-') printhelp();
         else fprintf(stderr,"Unknown option: %s\n",argv[i]);
     }
     if (trace>0) {
_______________________________________________
This message is sent to you from [email protected] mailing list.
Visit http://lists.osgeo.org/mailman/listinfo/foss-gps to manage your 
subscription
For more information, check http://wiki.osgeo.org/wiki/FOSS-GPS

Reply via email to