ksdflsjdfljas
Dependencies: Adafruit-16-Ch-PWM-Servo-Driver HCSR04 PID PololuQik2 QEI Sharp mbed-rtos
Fork of theRobot by
Diff: ShapeDetect.h
- Revision:
- 3:b7b4780a7f6e
- Parent:
- 0:1b64a0cedc5d
- Child:
- 6:75259c3306dd
--- a/ShapeDetect.h Mon Mar 03 22:30:34 2014 +0000 +++ b/ShapeDetect.h Thu Mar 13 17:06:34 2014 +0000 @@ -2,7 +2,11 @@ #define SHAPEDETECT_H_ /* theshold for setting binary output */ -#define THRESHOLD 100 +#define THRESHOLD 100 + +//areas from camera 11" from ground +#define TRIANGE_AREA_TRESHOLD 3300 +#define SQUARE_AREA_TRESHOLD 4900 /* modes for image processing */ #define BINARY 1 @@ -18,7 +22,7 @@ void centerMass(int *xcoord, int *ycoord, int *s_area); void clearBounds(void); int shapeDetection_mass(void); -int laserDistance(void); +int getDistance(void); #endif \ No newline at end of file