Paolina Povolotskaya / theRobotNEW

Dependencies:   Adafruit-16-Ch-PWM-Servo-Driver HCSR04 PID PololuQik2 QEI Sharp mbed-rtos

Fork of theRobot by Thomas Ashworth

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ShapeDetect.h Source File

ShapeDetect.h

00001 #ifndef SHAPEDETECT_H_
00002 #define SHAPEDETECT_H_
00003 
00004 /* theshold for setting binary output */
00005 #define THRESHOLD 80 
00006 
00007 //areas from camera 11" from ground
00008 #define TRIANGLE_AREA       2100
00009 #define SQUARE_AREA         3400  
00010 #define AREA_TOLERANCE      100         
00011 
00012 /* modes for image processing */
00013 #define BINARY    1         
00014 #define GREYSCALE 2
00015 #define DECIMAL   3
00016 
00017 #define RIG_IP_THRESHOLD 1000
00018 #define RIG_1_IP_THRESHOLD 3000
00019 
00020  
00021 void lrf_baudCalibration(void);
00022 void printImageToFile(int arrayType_f);
00023 int edgeDetection(void); 
00024 void ImageToArray(int arrayType_a);
00025 void centerMass(int *xcoord, int *ycoord, int *s_area);
00026 void clearBounds(void);
00027 int shapeDetection(void);
00028 int getDistance(void);
00029 int rigDetectionImgProc(void);
00030 
00031 int get_com_x(void);
00032 int get_com_y(void);
00033 int get_com_a(void);
00034 
00035 
00036 #endif