ksdflsjdfljas
Dependencies: Adafruit-16-Ch-PWM-Servo-Driver HCSR04 PID PololuQik2 QEI Sharp mbed-rtos
Fork of theRobot by
Diff: ShapeDetect.h
- Revision:
- 0:1b64a0cedc5d
- Child:
- 3:b7b4780a7f6e
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ShapeDetect.h Mon Mar 03 15:27:32 2014 +0000 @@ -0,0 +1,24 @@ +#ifndef SHAPEDETECT_H_ +#define SHAPEDETECT_H_ + +/* theshold for setting binary output */ +#define THRESHOLD 100 + +/* modes for image processing */ +#define BINARY 1 +#define GREYSCALE 2 +#define DECIMAL 3 + + + +void lrf_baudCalibration(void); +void printImageToFile(int arrayType_f); +int edgeDetection(void); +void ImageToArray(int arrayType_a); +void centerMass(int *xcoord, int *ycoord, int *s_area); +void clearBounds(void); +int shapeDetection_mass(void); +int laserDistance(void); + + +#endif \ No newline at end of file