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-04-02
- Revision:
- 15:78f5e937f6ab
- Parent:
- 14:784acd735b8c
- Child:
- 16:8bb212df81b7
File content as of revision 15:78f5e937f6ab:
#ifndef SHAPEDETECT_H_ #define SHAPEDETECT_H_ /* theshold for setting binary output */ #define THRESHOLD 90 //areas from camera 11" from ground #define TRIANGLE_AREA 3000 #define SQUARE_AREA 3400 #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