From 62eabdba8e4dab9603e8eb6a2a20871f968bd012 Mon Sep 17 00:00:00 2001 From: Steven Franke Date: Tue, 2 Jan 2018 03:11:43 +0000 Subject: [PATCH] Sequence detector block length is set from command line using -b . git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8394 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- lib/wsprd/wsprd_exp.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/wsprd/wsprd_exp.c b/lib/wsprd/wsprd_exp.c index f22728b44..0938c3071 100644 --- a/lib/wsprd/wsprd_exp.c +++ b/lib/wsprd/wsprd_exp.c @@ -688,6 +688,7 @@ void usage(void) printf("\n"); printf("Options:\n"); printf(" -a path to writeable data files, default=\".\"\n"); + printf(" -b x (sequence estimator block size; 1,2,3,6, or 9)\n"); printf(" -c write .c2 file at the end of the first pass\n"); printf(" -C maximum number of decoder cycles per bit, default 10000\n"); printf(" -d deeper search. Slower, a few more decodes\n"); @@ -782,11 +783,14 @@ int main(int argc, char *argv[]) idat=malloc(sizeof(float)*maxpts); qdat=malloc(sizeof(float)*maxpts); - while ( (c = getopt(argc, argv, "a:cC:de:f:HJmqstwvz:")) !=-1 ) { + while ( (c = getopt(argc, argv, "a:b:cC:de:f:HJmqstwvz:")) !=-1 ) { switch (c) { case 'a': data_dir = optarg; break; + case 'b': + nblocksize=(int) atoi(optarg); + break; case 'c': writec2=1; break;