![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
added normalization and use of keyboard. I tested it and it worked
Dependencies: Adafruit-16-Ch-PWM-Servo-Driver mbed
Fork of theRobot by
ShapeDetect.h@4:116829a5ae3c, 2014-03-08 (annotated)
- Committer:
- Fairy_Paolina
- Date:
- Sat Mar 08 23:23:35 2014 +0000
- Revision:
- 4:116829a5ae3c
- Parent:
- 0:1b64a0cedc5d
revision 3/8;
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 | 0:1b64a0cedc5d | 5 | #define THRESHOLD 100 |
tashworth | 0:1b64a0cedc5d | 6 | |
tashworth | 0:1b64a0cedc5d | 7 | /* modes for image processing */ |
tashworth | 0:1b64a0cedc5d | 8 | #define BINARY 1 |
tashworth | 0:1b64a0cedc5d | 9 | #define GREYSCALE 2 |
tashworth | 0:1b64a0cedc5d | 10 | #define DECIMAL 3 |
tashworth | 0:1b64a0cedc5d | 11 | |
tashworth | 0:1b64a0cedc5d | 12 | |
tashworth | 0:1b64a0cedc5d | 13 | |
tashworth | 0:1b64a0cedc5d | 14 | void lrf_baudCalibration(void); |
tashworth | 0:1b64a0cedc5d | 15 | void printImageToFile(int arrayType_f); |
tashworth | 0:1b64a0cedc5d | 16 | int edgeDetection(void); |
tashworth | 0:1b64a0cedc5d | 17 | void ImageToArray(int arrayType_a); |
tashworth | 0:1b64a0cedc5d | 18 | void centerMass(int *xcoord, int *ycoord, int *s_area); |
tashworth | 0:1b64a0cedc5d | 19 | void clearBounds(void); |
tashworth | 0:1b64a0cedc5d | 20 | int shapeDetection_mass(void); |
tashworth | 0:1b64a0cedc5d | 21 | int laserDistance(void); |
tashworth | 0:1b64a0cedc5d | 22 | |
tashworth | 0:1b64a0cedc5d | 23 | |
tashworth | 0:1b64a0cedc5d | 24 | #endif |