![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
vf
Dependencies: Servo ServoArm mbed
Fork of PES_Official by
Headers/Declarations.h@12:c0bcb95885dd, 2017-05-10 (annotated)
- Committer:
- beacon
- Date:
- Wed May 10 13:30:13 2017 +0000
- Revision:
- 12:c0bcb95885dd
- Parent:
- 10:f76476943a6c
- Child:
- 13:6c1f8e35b242
k
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
beacon | 4:67d7177c213f | 1 | #ifndef DECLARATIONS_H |
beacon | 4:67d7177c213f | 2 | #define DECLARATIONS_H |
beacon | 4:67d7177c213f | 3 | |
beacon | 4:67d7177c213f | 4 | //DistanceSensors: |
beacon | 4:67d7177c213f | 5 | #define NEAR 0.18f //Used for distance Sensors. If they're to near to a wall -> turn |
beacon | 4:67d7177c213f | 6 | #define NEAR_LEGO 0.20f //If the DistanceSensors are near to a Lego... |
beacon | 4:67d7177c213f | 7 | |
beacon | 4:67d7177c213f | 8 | #define LEFT_L 5 //Arrayindex of the left LEGO Sensor & left LED |
beacon | 4:67d7177c213f | 9 | #define FWD_L 0 //Arrayindex of the front LEGO Sensor & front LED |
beacon | 4:67d7177c213f | 10 | #define RIGHT_L 1 //Arrayindex of the right LEGO Sensor & right LED |
beacon | 4:67d7177c213f | 11 | |
beacon | 4:67d7177c213f | 12 | #define LEFT 7 //Arrayindex of the left Sensor |
beacon | 4:67d7177c213f | 13 | #define FWD 6 //Arrayindex of the front Sensor |
beacon | 4:67d7177c213f | 14 | #define RIGHT 8 //Arrayindex of the right Sensor |
beacon | 4:67d7177c213f | 15 | #define BRIGHT 2 //Arrayindex of the backward right Sensor & left LED |
beacon | 4:67d7177c213f | 16 | #define BWD 3 //Arrayindex of the backward Sensor & front LED |
beacon | 4:67d7177c213f | 17 | #define BLEFT 4 //Arrayindex of the backsward left Sensor & right LED |
beacon | 4:67d7177c213f | 18 | |
beacon | 4:67d7177c213f | 19 | //ColorSensors: |
beacon | 12:c0bcb95885dd | 20 | #define RED_UPLIMIT 1300 //Default limit in mV |
beacon | 12:c0bcb95885dd | 21 | #define GREEN_DOWNLIMIT 1301// |
beacon | 12:c0bcb95885dd | 22 | #define GREEN_UPLIMIT 2000 // |
beacon | 4:67d7177c213f | 23 | |
beacon | 4:67d7177c213f | 24 | #define GREEN 1 //Will be used to operate arm functions |
beacon | 4:67d7177c213f | 25 | #define NOBLOCK 0 // |
beacon | 12:c0bcb95885dd | 26 | #define RED 2 // |
beacon | 4:67d7177c213f | 27 | |
beacon | 4:67d7177c213f | 28 | //Greifer: |
beacon | 12:c0bcb95885dd | 29 | //#define PC_7 SERVO0 |
beacon | 4:67d7177c213f | 30 | |
beacon | 6:ba26dd3251b3 | 31 | //Arm |
beacon | 10:f76476943a6c | 32 | #define COLLECT_POS 60.0f |
beacon | 10:f76476943a6c | 33 | #define RELEASE_POS 85.0f |
beacon | 10:f76476943a6c | 34 | #define TAKE_POS -65.0f |
beacon | 4:67d7177c213f | 35 | |
beacon | 4:67d7177c213f | 36 | //Misc: |
beacon | 12:c0bcb95885dd | 37 | #define TIMEOUT 1400 //if the timer reaches TIMEOUT ([TIMEOUT] = 0.1s), the robot will reset. |
beacon | 4:67d7177c213f | 38 | #define MAX 50 //Once the counter reaches MAX, it will turn around. |
beacon | 4:67d7177c213f | 39 | |
beacon | 4:67d7177c213f | 40 | #endif |