an SPI interface the cmu pixy camera

Dependents:   robotic_fish_ver_4_9_pixy UMO

Files at this revision

API Documentation at this revision

Comitter:
sandwich
Date:
Fri Jul 11 14:30:06 2014 +0000
Parent:
8:a915c5eff55a
Commit message:
..

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
diff -r a915c5eff55a -r 89b9d1a6457c pixy.cpp
--- a/pixy.cpp	Fri Jun 06 19:47:27 2014 +0000
+++ b/pixy.cpp	Fri Jul 11 14:30:06 2014 +0000
@@ -9,6 +9,8 @@
     //blocks=new Block[nBlocks]; //allocate space for the blocks
     //numBlocks=nBlocks;
     numBlocks=NUM_BLOCKS;
+    bestX=CENTER_X;
+    bestY=CENTER_Y;
 }
 
 pixySPI::~pixySPI()
diff -r a915c5eff55a -r 89b9d1a6457c pixy.h
--- a/pixy.h	Fri Jun 06 19:47:27 2014 +0000
+++ b/pixy.h	Fri Jul 11 14:30:06 2014 +0000
@@ -2,7 +2,7 @@
 #include "mbed.h"
 
 #define INVALID_BLOCK 20
-#define CENTER_X 320
+#define CENTER_X 160
 #define CENTER_Y 100
 #define NUM_BLOCKS 10
 //a class to aid in SPI communication with the pixy camera