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