Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of TAU_ZOOLOG_Chirp_Generator by
Diff: predefined_output.h
- Revision:
- 9:6d4136d9c074
- Parent:
- 3:25cd717ad782
diff -r 4a9979fe0122 -r 6d4136d9c074 predefined_output.h
--- 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;
