Dectection take 1. Fixed adaptation step. Detect based on a number of standard deviations away from the mean.

Dependencies:   SI1143 m3pi mbed

Fork of Proximity_Sensor_2_detect by MF Doom

Files at this revision

API Documentation at this revision

Comitter:
dmcohen24
Date:
Tue May 20 21:34:10 2014 +0000
Parent:
0:1802ead3667e
Child:
2:8798491332ed
Commit message:
Changing sample rate and register values;

Changed in this revision

SI1143.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/SI1143.lib	Wed May 14 19:02:25 2014 +0000
+++ b/SI1143.lib	Tue May 20 21:34:10 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/dmcohen24/code/SI1141/#f1303b85db58
+http://mbed.org/users/dmcohen24/code/SI1141/#70933bf445af
--- a/main.cpp	Wed May 14 19:02:25 2014 +0000
+++ b/main.cpp	Tue May 20 21:34:10 2014 +0000
@@ -19,7 +19,7 @@
     while(1)
     {
         // Read each led sensor
-        sense1 = sensor.get_ps1(5);
+        sense1 = sensor.get_ps1(1);
         
         // Can be changed for different sensitivity
         //D1
@@ -69,6 +69,6 @@
         printf("%d\r\n",sense1);
         
         //led2 = !led2;
-        wait(.02);
+        //wait(.01);
     }
 }