if (argc < 2) {\r
fprintf(stderr, "usage: %s --test\n", argv[0]);\r
fprintf(stderr, " Run internal self test and print code parameters.\n\n");\r
- fprintf(stderr, "usage: %s InOneSymbolPerDouble OutOneBitPerByte [--sdinput]\n", argv[0]);\r
+ fprintf(stderr, "usage: %s InOneSymbolPerDouble OutOneBitPerByte [--sd]\n", argv[0]);\r
fprintf(stderr, " InOneSymbolPerDouble is a file of double LLRs. If the\n");\r
fprintf(stderr, " --sd flag is used the input file can be Soft Decision\n");\r
fprintf(stderr, " symbols, and LLRs will be calculated internally. Use -\n");\r
sdinput = 0;\r
printf("argc: %d\n", argc);\r
if (argc == 4)\r
- if (strcmp(argv[3], "--sdinput") == 0)\r
+ if (strcmp(argv[3], "--sd") == 0)\r
sdinput = 1;\r
\r
double *input_double = calloc(CodeLength, sizeof(double));\r
/* generated by ldpc_fsk_lib.m:ldpc_decode() */
-#include "ldpc_code.h"
+#include "H2064_516_sparse.h"
void encode(unsigned char ibits[], unsigned char pbits[]) {
unsigned int p, i, tmp, par, prev=0;
if (strcmp(argv[1], "-") == 0) fin = stdin;
else if ( (fin = fopen(argv[1],"rb")) == NULL ) {
fprintf(stderr, "Error opening input bit file: %s: %s.\n",
- argv[2], strerror(errno));
+ argv[1], strerror(errno));
exit(1);
}