![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
These are the core files for the Robot at Team conception.
Pixy.h
- Committer:
- obrie829
- Date:
- 2017-05-26
- Revision:
- 1:ff0674b96cc5
- Parent:
- 0:eba74e7a229b
File content as of revision 1:ff0674b96cc5:
#include <mbed.h> class Pixy { public: Pixy(Serial& cam); struct pixy_s { uint16_t checksum; uint16_t signature; uint16_t x; uint16_t y; uint16_t width; uint16_t height; }; int getX(); int getY(); int getSignature(); int getHeight(); int getWidth(); bool objectDetected(); private: void rxCallback(); bool startFound; int detects; Serial& cam; pixy_s pixy; };