Files at this revision

API Documentation at this revision

Comitter:
Nakor
Date:
Thu Feb 03 19:58:19 2011 +0000
Parent:
4:7e7c93d90d99
Commit message:

Changed in this revision

theBadTouch.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 7e7c93d90d99 -r e1e14d61dd00 theBadTouch.cpp
--- a/theBadTouch.cpp	Thu Feb 03 15:43:06 2011 +0000
+++ b/theBadTouch.cpp	Thu Feb 03 19:58:19 2011 +0000
@@ -46,7 +46,7 @@
     
     
 
-    if(badPlace() >= 1.0)
+    if(badPlace() >= 0.8)
     {
     /*
         if(_touchCounter < 0x03)
@@ -69,13 +69,16 @@
             t.reset();
             for(int i = 0; i < 20; i++)
             {
-                while(badPlace() >= 1.0)
+                //while(badPlace() >= 0.8)
+                //{
+                if(badPlace() >= 0.8)
                 {
                     if(t.read_ms() > 200)
                     {
                         return 0x02;
                     }
                 }
+                //}
             }
         }
     }
@@ -101,5 +104,7 @@
     float value = *_sense;
     delete _sense;
     
+    printf("Value:  %f\n", value);
+    wait(.5);
     return value;
 }
\ No newline at end of file