Browse Source

commit du dimanche

phyto 1 year ago
parent
commit
a95e2846d4
4 changed files with 10 additions and 7 deletions
  1. 3
    0
      .gitignore
  2. 2
    2
      essai.c
  3. 3
    3
      plot.sh
  4. 2
    2
      simulator/rdtemp/rdtemp.ino

+ 3
- 0
.gitignore View File

@@ -25,3 +25,6 @@ viz/curses/t
25 25
 viz/gnuplot/*.png
26 26
 viz/*.a
27 27
 
28
+audio/t
29
+audio/*.wav
30
+

+ 2
- 2
essai.c View File

@@ -61,7 +61,7 @@ for (idx=0; idx<nbloops; idx++) {
61 61
 	/* here we are trying to log all that temps values */
62 62
 	if (NULL!=fp) {	
63 63
 		temps = time(NULL);
64
-		if ((temps-old_temps) > 60) {
64
+		if ((temps-old_temps) > 50) {
65 65
 			fprintf(fp, "%ld %f %f %f %f\n", temps,
66 66
 				Fdatas[0], Fdatas[1], Fdatas[2], Fdatas[3]);
67 67
 			fflush(fp);
@@ -121,7 +121,7 @@ nonl();         cbreak();       noecho();
121 121
 keypad(stdscr, TRUE);           /* acces aux touches 'curseur' */
122 122
 fond_ecran(" Demonstrator ");
123 123
 
124
-affiche_valeurs(serial_in, 10000);
124
+affiche_valeurs(serial_in, 5000000);
125 125
 
126 126
 /*
127 127
  *      plop, on a fini, il faut restaurer la console

+ 3
- 3
plot.sh View File

@@ -5,12 +5,12 @@
5 5
 
6 6
 DATAFILE="serial/foo.dat"
7 7
 IMAGE="graphe.png"
8
-TMPFILE="/tmp/tmpdata"
8
+TMPFILE="/dev/shm/tmpdata"
9 9
 
10
-tail -20000 < ${DATAFILE} > ${TMPFILE}
10
+tail -10000 < ${DATAFILE} > ${TMPFILE}
11 11
 
12 12
 gnuplot << __EOC__
13
-set term png 	size 2400,700
13
+set term png 	size 1650,700
14 14
 set output 	"${IMAGE}"
15 15
 set ytics	2
16 16
 set xtics	

+ 2
- 2
simulator/rdtemp/rdtemp.ino View File

@@ -19,9 +19,9 @@ void setup() {
19 19
    *  range of our temperatures.
20 20
    */
21 21
   analogReference(INTERNAL1V1); // Pour Arduino Mega2560
22
-  Serial.print("\n\n\n\n");
22
+  Serial.print("\n\n");
23 23
   delay(1000);
24
-  Serial.print("M running\n");
24
+  Serial.print("M running now\n");
25 25
   
26 26
 }
27 27
 /* -------------------------------------------------- */

Loading…
Cancel
Save