![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
vf
Dependencies: Servo ServoArm mbed
Fork of PES_Official by
Headers/Declarations.h@15:915f8839fe48, 2017-05-11 (annotated)
- Committer:
- EpicG10
- Date:
- Thu May 11 18:57:45 2017 +0000
- Revision:
- 15:915f8839fe48
- Parent:
- 14:b61fbd13a7c9
- Child:
- 17:4e1be70bdedb
c
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: |
EpicG10 | 13:6c1f8e35b242 | 20 | #define RED_UPLIMIT 1400 //Default limit in mV |
EpicG10 | 13:6c1f8e35b242 | 21 | #define GREEN_DOWNLIMIT 1401// |
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 | |
EpicG10 | 14:b61fbd13a7c9 | 36 | |
EpicG10 | 14:b61fbd13a7c9 | 37 | // |
EpicG10 | 15:915f8839fe48 | 38 | #define UP_POS 20.0f //zu bestimmen |
EpicG10 | 15:915f8839fe48 | 39 | #define DOWN_POS -72.0f //zu bestimmen |
EpicG10 | 14:b61fbd13a7c9 | 40 | |
beacon | 4:67d7177c213f | 41 | //Misc: |
beacon | 12:c0bcb95885dd | 42 | #define TIMEOUT 1400 //if the timer reaches TIMEOUT ([TIMEOUT] = 0.1s), the robot will reset. |
beacon | 4:67d7177c213f | 43 | #define MAX 50 //Once the counter reaches MAX, it will turn around. |
beacon | 4:67d7177c213f | 44 | |
beacon | 4:67d7177c213f | 45 | #endif |