Dependencies:   nRF51822

Revisions of Source/main.cpp

Revision Date Message Actions
52:23cc9f576e4a 2020-09-21 When doing the "fast" ticks for the 2 step cap off, it was only calling test_cap(). Now calls process_state() also, so it can be processed as a cap off. File  Diff  Annotate
51:53fe9aff625a 2020-09-18 Added 2 step cap off detection.; 1st step causes the rate of checking for a cap off to increase.; 2nd step is the actual detection of a cap off.; File  Diff  Annotate
50:8dca54c1e3fd 2020-09-11 Changed to V1.18; Only adapt the cap on threshold just prior to going to sleep for SHIP_MODE.; File  Diff  Annotate
49:d2bd9056426e 2020-09-03 Threshold change. The threshold on vs off can not overlap. File  Diff  Annotate
48:bb7d5118e03c 2020-09-02 Added adaptive cap_on threshold. (only increases htreshold); Added 'sq' BLE command. Displays filtered cap_on on-off reading, peak filtered reading, current cap_on threshold.; ; File  Diff  Annotate
47:a1e91dea282d 2020-08-25 Revised some mnemoincs and moved some test_cap constants to main.h File  Diff  Annotate
46:b85be1ccf179 2020-08-21 Updated to V1.17; Added hysteresis to the cap detection function; Removed NRF51DK debugging option; Removed Bright light lockout for cap detection File  Diff  Annotate
42:213f9b0cabe4 2020-03-20 Changed to V13.; Changed test_cap() to ignore new cap sensor readings if the off_reading is too high. This happens when ambient IR light is excessive. Threshold is in main.h File  Diff  Annotate
41:80f618bb53a4 2020-03-19 Version 12 - Cap threshold = 150 counts; Test mode File  Diff  Annotate
40:adabdb1c5abe 2020-01-16 Added delay for read of ambient sensor bit. Added DEW snippets turning on/off of logging function. File  Diff  Annotate
39:93d6d459c76c 2019-12-19 Brought back the battery level command for the UART, i.e., "sb"; Set settling time for ambient sensor at 200 ms when reading level, i.e., "sl" File  Diff  Annotate
38:4b06a103c044 2019-12-18 Added 'SL' command to allow reading analog value of light sensor. Delay for circuit powerup can be changed via #define in main.h; ; version 1.10 File  Diff  Annotate
37:0cb0a0b22b99 2019-12-13 wait after analog turn on = 3.5 ms; In-Use mode timer = 1 s; EOL max uses = 120; CAP OFF threshold = 100 File  Diff  Annotate
35:e8fa201fe147 2019-09-26 31 days use.; Reset clock when it wakes from ship mode. File  Diff  Annotate
34:c122d842ad9a 2019-09-17 Advertises forever when in test mode.; File  Diff  Annotate
30:76b51e525c40 2019-07-26 Fix device name that appends Device Address.; Miscoded and needed to set 2 top bit per BLE standard.; ; This version also skips Test Mode.; File  Diff  Annotate
29:4b347695b9f7 2019-07-16 In main.h, changed max uses to 120.; File  Diff  Annotate
27:bb7247a1704e 2019-04-17 Works acording to Merck flow diagram.; File  Diff  Annotate
26:a577c4b69fe0 2019-04-15 Added all functions required by Merck Flow Diagram.; Still needs testing.; File  Diff  Annotate
25:42163d650266 2019-03-25 Everything here except EOL mode.; Some Flashing led stuff is in here for debugging. File  Diff  Annotate
24:761c30334cf4 2019-03-21 Test mode added; needs testing and DATA flag; Needs EOL stuff File  Diff  Annotate
23:7ca590427f0e 2019-03-19 Saving in progress work of updating code to new Merck Flow Diagram. File  Diff  Annotate