For IEEE Robotics
Dependencies: Adafruit-16-Ch-PWM-Servo-Driver HCSR04 PID PololuQik2 QEI Sharp mbed-rtos
ShapeDetect.h@8:77a57909aa15, 2014-03-27 (annotated)
- Committer:
- tashworth
- Date:
- Thu Mar 27 23:16:02 2014 +0000
- Revision:
- 8:77a57909aa15
- Parent:
- 6:75259c3306dd
- Child:
- 11:8d2455e383ce
3-27-14
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 | 8:77a57909aa15 | 5 | #define THRESHOLD 65 |
tashworth | 3:b7b4780a7f6e | 6 | |
tashworth | 3:b7b4780a7f6e | 7 | //areas from camera 11" from ground |
tashworth | 3:b7b4780a7f6e | 8 | #define TRIANGE_AREA_TRESHOLD 3300 |
tashworth | 3:b7b4780a7f6e | 9 | #define SQUARE_AREA_TRESHOLD 4900 |
tashworth | 0:1b64a0cedc5d | 10 | |
tashworth | 0:1b64a0cedc5d | 11 | /* modes for image processing */ |
tashworth | 0:1b64a0cedc5d | 12 | #define BINARY 1 |
tashworth | 0:1b64a0cedc5d | 13 | #define GREYSCALE 2 |
tashworth | 0:1b64a0cedc5d | 14 | #define DECIMAL 3 |
tashworth | 0:1b64a0cedc5d | 15 | |
tashworth | 0:1b64a0cedc5d | 16 | |
tashworth | 0:1b64a0cedc5d | 17 | |
tashworth | 0:1b64a0cedc5d | 18 | void lrf_baudCalibration(void); |
tashworth | 0:1b64a0cedc5d | 19 | void printImageToFile(int arrayType_f); |
tashworth | 0:1b64a0cedc5d | 20 | int edgeDetection(void); |
tashworth | 0:1b64a0cedc5d | 21 | void ImageToArray(int arrayType_a); |
tashworth | 0:1b64a0cedc5d | 22 | void centerMass(int *xcoord, int *ycoord, int *s_area); |
tashworth | 0:1b64a0cedc5d | 23 | void clearBounds(void); |
tashworth | 6:75259c3306dd | 24 | int shapeDetection(void); |
tashworth | 3:b7b4780a7f6e | 25 | int getDistance(void); |
tashworth | 6:75259c3306dd | 26 | void centerCamWithTool(void); |
tashworth | 0:1b64a0cedc5d | 27 | |
tashworth | 0:1b64a0cedc5d | 28 | |
tashworth | 8:77a57909aa15 | 29 | |
tashworth | 0:1b64a0cedc5d | 30 | #endif |