Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: TestPixy FRC_2018 FRC2018_Bis 0hackton_08_06_18 ... more
Fork of Pixy by
Diff: Pixy.cpp
- 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;
