Browse Source

first lut function, suite

tth 1 year ago
parent
commit
4c984ebdcc
3 changed files with 5 additions and 3 deletions
  1. 1
    0
      .gitignore
  2. 3
    2
      core/lut1024f.c
  3. 1
    1
      serial/essai.sh

+ 1
- 0
.gitignore View File

@@ -3,6 +3,7 @@ a.out
3 3
 fake-values
4 4
 essai
5 5
 serial/t
6
+core/t
6 7
 
7 8
 doc/*.toc
8 9
 doc/*.log

+ 3
- 2
core/lut1024f.c View File

@@ -20,11 +20,11 @@ for(count=0; count<1024; count++) {
20 20
 	foo = fscanf(fp, "%f", &where->vals[foo]);
21 21
 	if (1 != foo) {
22 22
 		fprintf(stderr, "%s: bad read %d\n", __func__, foo);
23
-		return -2;
23
+		return -4;
24 24
 		}
25 25
 	}
26 26
 
27
-return -1;
27
+return 0;
28 28
 }
29 29
 
30 30
 /* ---------------------------------------------------------------- */
@@ -60,6 +60,7 @@ if (foo) {
60 60
 	exit(5);
61 61
 	}
62 62
 
63
+foo = slurp_lut1024f(fplut, where, 0);
63 64
 
64 65
 fclose(fplut);
65 66
 

+ 1
- 1
serial/essai.sh View File

@@ -10,7 +10,7 @@ NB_READ=15000
10 10
 ./t -v -n ${NB_READ} -d ${DEVICE} | tee -a ${DATAFILE}
11 11
 
12 12
 gnuplot << __EOC__
13
-set term png 	size 1600,512
13
+set term png 	size 3200,512
14 14
 set output 	"${IMAGE}"
15 15
 set grid
16 16
 set title	"Dans le Double Dragon 2"

Loading…
Cancel
Save