Do NOT modify!

Dependencies:   mbed Servo ServoArm

Fork of PES_Yanick by zhaw_st16b_pes2_10

Committer:
beacon
Date:
Wed Apr 19 12:23:52 2017 +0000
Revision:
4:67d7177c213f
Child:
6:ba26dd3251b3
l;

Who changed what in which revision?

UserRevisionLine numberNew 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 4:67d7177c213f 31 //Arm:
beacon 4:67d7177c213f 32 #define BACK 80 //Angle to set the arm up and back
beacon 4:67d7177c213f 33
beacon 4:67d7177c213f 34 //Misc:
beacon 4:67d7177c213f 35 #define TIMEOUT 140 //if the timer reaches TIMEOUT ([TIMEOUT] = 0.1s), the robot will reset.
beacon 4:67d7177c213f 36 #define MAX 50 //Once the counter reaches MAX, it will turn around.
beacon 4:67d7177c213f 37
beacon 4:67d7177c213f 38 #endif