nav fixed
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-13
- Revision:
- 3:b7b4780a7f6e
- Parent:
- 0:1b64a0cedc5d
- Child:
- 6:75259c3306dd
File content as of revision 3:b7b4780a7f6e:
#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_mass(void); int getDistance(void); #endif