Merck / Mbed OS SmartCap_OS5

Dependencies:   nRF51822

Revision:
51:53fe9aff625a
Parent:
50:8dca54c1e3fd
Child:
53:4524fff577eb
--- a/Source/main.h	Fri Sep 11 19:27:20 2020 +0000
+++ b/Source/main.h	Fri Sep 18 21:15:41 2020 +0000
@@ -15,10 +15,13 @@
 #define PERIODIC_TICK_SEC 1    // update rtc and run check cap rate
 #define FAST_TICK_SEC     1    // update rtc and run check cap rate while in init and test mode
 #define EOL_TICK_SEC      10   // update rtc and run check cap rate while in EOL mode
+#define VERY_FAST_TICK_SEC 0.1  // used for when the cap is almost off
+#define VERY_FAST_TICK_ON_TIME_SEC 2 // must be an integer
 
 #define CAP_THRESHOLD_ON       42 // Cap on threshold.  Lower value means it triggers more easily
-#define CAP_THRESHOLD_OFF      12 // Cap off threshold.  Higher value means it triggers more easily
-#define CAP_THRESHOLD_OFF_EOL   25 // Cap off threshold for EOL to ensure bluetooth advertising - FTD 08212020
+#define CAP_THRESHOLD_OFF1      35 // Cap off threshold.  Higher value means it triggers more easily
+#define CAP_THRESHOLD_OFF2      5  // Cap off threshold.  Higher value means it triggers more easily
+#define CAP_THRESHOLD_OFF_EOL   20 // Cap off threshold for EOL to ensure bluetooth advertising - FTD 08212020
 
 #define CAP_THRESHOLD_ON_INITIAL 15 // initial value of adaptive cap_off threshold (Must be higher than CAPTHRESHOLD_OFF)
 #define CAP_THRESHOLD_ADAPT_RATE  192 // How fast the thresholf adapts. number 0 to 256. 256 means adapt immediately, 0 means no adapt.