nav fixed

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

Fork of theRobot by Thomas Ashworth

ShapeDetect.h

Committer:
jjcarr2
Date:
2014-04-11
Revision:
22:072dabdf905a
Parent:
21:0907e1f5e16c

File content as of revision 22:072dabdf905a:

#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