uyvug
Dependencies: Adafruit-16-Ch-PWM-Servo-Driver HCSR04 PID PololuQik2 QEI Sharp mbed-rtos
Fork of theRobot by
ShapeDetect.h@34:cd4980573159, 2014-04-24 (annotated)
- Committer:
- Fairy_Paolina
- Date:
- Thu Apr 24 23:20:43 2014 +0000
- Revision:
- 34:cd4980573159
- Parent:
- 22:79c5871543b5
Rolls up to the rig markings. ;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
tashworth | 0:1b64a0cedc5d | 1 | #ifndef SHAPEDETECT_H_ |
tashworth | 0:1b64a0cedc5d | 2 | #define SHAPEDETECT_H_ |
tashworth | 0:1b64a0cedc5d | 3 | |
tashworth | 0:1b64a0cedc5d | 4 | /* theshold for setting binary output */ |
tashworth | 20:55dcff40c5d9 | 5 | #define THRESHOLD 56 |
tashworth | 3:b7b4780a7f6e | 6 | |
tashworth | 3:b7b4780a7f6e | 7 | //areas from camera 11" from ground |
tashworth | 22:79c5871543b5 | 8 | #define TRIANGLE_AREA 2356 |
tashworth | 22:79c5871543b5 | 9 | #define SQUARE_AREA 3000 |
tashworth | 22:79c5871543b5 | 10 | #define CIRCLE_AREA 2600 |
tashworth | 13:529323807361 | 11 | #define AREA_TOLERANCE 100 |
tashworth | 0:1b64a0cedc5d | 12 | |
tashworth | 0:1b64a0cedc5d | 13 | /* modes for image processing */ |
tashworth | 0:1b64a0cedc5d | 14 | #define BINARY 1 |
tashworth | 0:1b64a0cedc5d | 15 | #define GREYSCALE 2 |
tashworth | 0:1b64a0cedc5d | 16 | #define DECIMAL 3 |
tashworth | 0:1b64a0cedc5d | 17 | |
tashworth | 15:78f5e937f6ab | 18 | #define RIG_IP_THRESHOLD 1000 |
tashworth | 15:78f5e937f6ab | 19 | #define RIG_1_IP_THRESHOLD 3000 |
tashworth | 0:1b64a0cedc5d | 20 | |
tashworth | 0:1b64a0cedc5d | 21 | |
tashworth | 0:1b64a0cedc5d | 22 | void lrf_baudCalibration(void); |
tashworth | 0:1b64a0cedc5d | 23 | void printImageToFile(int arrayType_f); |
tashworth | 0:1b64a0cedc5d | 24 | int edgeDetection(void); |
tashworth | 0:1b64a0cedc5d | 25 | void ImageToArray(int arrayType_a); |
tashworth | 0:1b64a0cedc5d | 26 | void centerMass(int *xcoord, int *ycoord, int *s_area); |
tashworth | 0:1b64a0cedc5d | 27 | void clearBounds(void); |
tashworth | 6:75259c3306dd | 28 | int shapeDetection(void); |
tashworth | 3:b7b4780a7f6e | 29 | int getDistance(void); |
tashworth | 15:78f5e937f6ab | 30 | int rigDetectionImgProc(void); |
tashworth | 13:529323807361 | 31 | |
tashworth | 11:8d2455e383ce | 32 | int get_com_x(void); |
tashworth | 11:8d2455e383ce | 33 | int get_com_y(void); |
tashworth | 11:8d2455e383ce | 34 | int get_com_a(void); |
tashworth | 0:1b64a0cedc5d | 35 | |
tashworth | 8:77a57909aa15 | 36 | |
tashworth | 0:1b64a0cedc5d | 37 | #endif |