a
Dependencies: Servo ServoArm mbed
Fork of PES_Official-TestF by
Headers/Declarations.h@10:f76476943a6c, 2017-05-03 (annotated)
- Committer:
- beacon
- Date:
- Wed May 03 13:54:51 2017 +0000
- Revision:
- 10:f76476943a6c
- Parent:
- 7:6fed0dcae9c1
- Child:
- 12:c0bcb95885dd
oi
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 | 4:67d7177c213f | 20 | #define RED_UPLIMIT 500 //Default limit in mV |
beacon | 4:67d7177c213f | 21 | #define GREEN_DOWNLIMIT 501 // |
beacon | 4:67d7177c213f | 22 | #define GREEN_UPLIMIT 1200 // |
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 | 4:67d7177c213f | 26 | #define RED -1 // |
beacon | 4:67d7177c213f | 27 | |
beacon | 4:67d7177c213f | 28 | //Greifer: |
beacon | 4:67d7177c213f | 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 | 4:67d7177c213f | 37 | #define TIMEOUT 140 //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 |