Currently a giant piece of crap, this library is just a quick way to get cheap inputs out of scrap parts. I will fix it up eventually so if you decide to use it now you do so at your own risk. Also, if you are allergic to moronic library names you probably do not want to touch this :)

Files at this revision

API Documentation at this revision

Comitter:
Nakor
Date:
Thu Feb 03 15:43:06 2011 +0000
Parent:
3:4c73b047af50
Child:
5:e1e14d61dd00
Commit message:

Changed in this revision

theBadTouch.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/theBadTouch.cpp	Thu Feb 03 15:40:30 2011 +0000
+++ b/theBadTouch.cpp	Thu Feb 03 15:43:06 2011 +0000
@@ -36,7 +36,7 @@
 
 char theBadTouch::isTouch()
 {
-    if(falseCounter > 20)
+    if(falseCounter > 5)
     {
         _untouchedFlag = 0x01;
         falseCounter = 0;
@@ -48,6 +48,7 @@
 
     if(badPlace() >= 1.0)
     {
+    /*
         if(_touchCounter < 0x03)
         {
             _touchCounter++;
@@ -57,7 +58,7 @@
         {
             _touchCounter = 0x00;
         }
-        
+      */  
         if(_untouchedFlag == 0x01)
         {
             _untouchedFlag = 0x00;
@@ -70,7 +71,7 @@
             {
                 while(badPlace() >= 1.0)
                 {
-                    if(t.read_ms() > 300)
+                    if(t.read_ms() > 200)
                     {
                         return 0x02;
                     }