Yossi_Students / Mbed 2 deprecated TAU_ZOOLOG_WAVE_Generator

Dependencies:   mbed

Fork of TAU_ZOOLOG_Chirp_Generator by Yossi_Students

Revision:
9:6d4136d9c074
Parent:
3:25cd717ad782
--- a/predefined_output.h	Tue Jul 11 14:08:31 2017 +0000
+++ b/predefined_output.h	Sun Jul 16 12:39:53 2017 +0000
@@ -47,20 +47,7 @@
     }
 
     if((ADCValueMax - ADCValueMin) > signal_low_threshold) {
-        if (num_back_to_normal == 0) {
-            num_threshold_crossing++;
-
-        } else {
-            num_back_to_normal--;
-            num_threshold_crossing = 0;
-        }
-        if (num_threshold_crossing > num_of_cycles_to_detect_threshold_crossing) {
-            // start transmission of predefined output signal
-            startPredefinedOutput = 1;
-            // printf("ADCFloatFiltered = %f\n", ADCFloatFiltered);
-        }
-    } else {
-        num_threshold_crossing = 0;
+        startPredefinedOutput = 1;
     }
 
     if (startPredefinedOutput == 0 ) {
@@ -101,7 +88,7 @@
 #endif
         }
         wait_us(delay_after_signal_transmission);
-        num_back_to_normal = NUM_OF_CYCLES_BACK_TO_NORMAL;
+        //num_back_to_normal = NUM_OF_CYCLES_BACK_TO_NORMAL;
         startPredefinedOutput = 0;
         ADCValueMax = 0;
         ADCValueMin = 0xfff;