Dependents:   Prom_Roebi

Files at this revision

API Documentation at this revision

Comitter:
ZHAW_Prometheus
Date:
Sat May 20 21:46:24 2017 +0000
Parent:
0:168eb7f8ec2e
Commit message:
Vers. 20.05.2017 23:45

Changed in this revision

Pixy.cpp Show annotated file Show diff for this revision Revisions of this file
Pixy.h Show annotated file Show diff for this revision Revisions of this file
--- a/Pixy.cpp	Thu May 18 09:10:39 2017 +0000
+++ b/Pixy.cpp	Sat May 20 21:46:24 2017 +0000
@@ -13,7 +13,7 @@
 void Pixy::rxCallback()
 {
     static const int buffersize = 256;
-    static int detects = 0;
+    detects = 0;
     static int startPoint = 0;
     static uint8_t buffer[buffersize] = {};
     static bool startFound = false;
@@ -72,3 +72,7 @@
     return pixy.signature;
 }
 
+int Pixy::getDetects()
+{
+    return detects;
+}
--- a/Pixy.h	Thu May 18 09:10:39 2017 +0000
+++ b/Pixy.h	Sat May 20 21:46:24 2017 +0000
@@ -21,10 +21,12 @@
     int getX();
     int getY();
     int getSignature();
+    int getDetects();
 
 private:
     bool startFound;
     void rxCallback();
+    int detects;
     Serial& cam;
     pixy_s pixy;
 };