Library for Pixy - CMUCAM5 smart camera

Dependents:   TestPixy FRC_2018 FRC2018_Bis 0hackton_08_06_18 ... more

Fork of Pixy by FRC - Hackathon

Revision:
2:90355c600404
Parent:
0:6f78c735f07c
Child:
3:1e4c6d7a0053
--- a/Pixy.cpp	Mon May 21 16:14:19 2018 +0000
+++ b/Pixy.cpp	Tue May 22 17:15:30 2018 +0000
@@ -9,7 +9,7 @@
     Pixy_check = -1;
 
     _cmucam = new Serial (tx, rx, debit);
-    _cmucam->attach (this,&PIXY::getPixyByte);
+    _cmucam->attach (callback(this,&PIXY::getPixyByte));
 
 }
 
@@ -140,9 +140,9 @@
     }
 }
 
-int PIXY::detectedObject (int* nbNormal, int* nbCC)
+int PIXY::detectedObject (int* nbNM, int* nbCC)
 {
-    *nbNormal = (int)Pixy_NMObjet;
+    *nbNM = (int)Pixy_NMObjet;
     *nbCC = (int)Pixy_CCObjet;
     if (Pixy_check!=0) return -1;
     if (FlagPixyOverflow) return -2;