ksdflsjdfljas
Dependencies: Adafruit-16-Ch-PWM-Servo-Driver HCSR04 PID PololuQik2 QEI Sharp mbed-rtos
Fork of theRobot by
Diff: ShapeDetect.h
- Revision:
- 13:529323807361
- Parent:
- 12:284be46593ae
- Child:
- 14:784acd735b8c
--- a/ShapeDetect.h Wed Apr 02 00:30:30 2014 +0000 +++ b/ShapeDetect.h Wed Apr 02 03:30:48 2014 +0000 @@ -5,8 +5,9 @@ #define THRESHOLD 90 //areas from camera 11" from ground -#define TRIANGE_AREA_TRESHOLD 3000 -#define SQUARE_AREA_TRESHOLD 3400 +#define TRIANGE_AREA 3000 +#define SQUARE_AREA 3400 +#define AREA_TOLERANCE 100 /* modes for image processing */ #define BINARY 1 @@ -23,7 +24,7 @@ void clearBounds(void); int shapeDetection(void); int getDistance(void); -void centerCamWithTool(void); + int get_com_x(void); int get_com_y(void); int get_com_a(void);