Browse Source

finetuning the random sender

tth 1 year ago
parent
commit
7e376763b8
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      simulator/send-random/send-random.ino

+ 3
- 3
simulator/send-random/send-random.ino View File

@@ -5,7 +5,7 @@
5 5
 /* -------------------------------------------------- */
6 6
 
7 7
 #define NBVAL   4
8
-#define DELAI   1664
8
+#define DELAI   1789
9 9
 
10 10
 int   values[NBVAL];
11 11
 
@@ -23,11 +23,11 @@ void updatevalues(void)
23 23
 {
24 24
   int foo;
25 25
   for (foo=0; foo<NBVAL; foo++) {
26
-    if (rand()%100<33) {
26
+    if (rand()%100<42) {
27 27
       values[foo] += (foo + 1);
28 28
       }
29 29
     if (values[foo] > 1023) {
30
-      values[foo] = rand()%25;
30
+      values[foo] = rand()%5;
31 31
       }
32 32
   }
33 33
 }

Loading…
Cancel
Save