For IEEE Robotics
Dependencies: Adafruit-16-Ch-PWM-Servo-Driver HCSR04 PID PololuQik2 QEI Sharp mbed-rtos
ShapeDetect.h
- Committer:
- tashworth
- Date:
- 2014-04-08
- Revision:
- 21:0907e1f5e16c
- Parent:
- 20:55dcff40c5d9
- Child:
- 22:79c5871543b5
File content as of revision 21:0907e1f5e16c:
#ifndef SHAPEDETECT_H_ #define SHAPEDETECT_H_ /* theshold for setting binary output */ #define THRESHOLD 56 //areas from camera 11" from ground #define TRIANGLE_AREA 2356 //2356 #define SQUARE_AREA 3000 //3247 #define CIRCLE_AREA 2600 //3036 #define AREA_TOLERANCE 100 /* modes for image processing */ #define BINARY 1 #define GREYSCALE 2 #define DECIMAL 3 #define RIG_IP_THRESHOLD 1000 #define RIG_1_IP_THRESHOLD 3000 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(void); int getDistance(void); int rigDetectionImgProc(void); int get_com_x(void); int get_com_y(void); int get_com_a(void); #endif