ksdflsjdfljas
Dependencies: Adafruit-16-Ch-PWM-Servo-Driver HCSR04 PID PololuQik2 QEI Sharp mbed-rtos
Fork of theRobot by
ShapeDetect.h
- Committer:
- tashworth
- Date:
- 2014-03-19
- Revision:
- 6:75259c3306dd
- Parent:
- 3:b7b4780a7f6e
- Child:
- 8:77a57909aa15
File content as of revision 6:75259c3306dd:
#ifndef SHAPEDETECT_H_ #define SHAPEDETECT_H_ /* theshold for setting binary output */ #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 #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(void); int getDistance(void); void centerCamWithTool(void); #endif