k

Dependencies:   Servo ServoArm mbed

Committer:
beacon
Date:
Mon May 22 11:24:46 2017 +0000
Revision:
0:15a8480061e8
o

Who changed what in which revision?

UserRevisionLine numberNew contents of line
beacon 0:15a8480061e8 1 #ifndef DECLARATIONS_H
beacon 0:15a8480061e8 2 #define DECLARATIONS_H
beacon 0:15a8480061e8 3
beacon 0:15a8480061e8 4 //DistanceSensors:
beacon 0:15a8480061e8 5 #define NEAR 0.18f //Used for distance Sensors. If they're to near to a wall -> turn
beacon 0:15a8480061e8 6 #define NEAR_LEGO 0.12f //If the DistanceSensors are near to a Lego...
beacon 0:15a8480061e8 7
beacon 0:15a8480061e8 8 #define LEFT_L 5 //Arrayindex of the left LEGO Sensor & left LED
beacon 0:15a8480061e8 9 #define FWD_L 0 //Arrayindex of the front LEGO Sensor & front LED
beacon 0:15a8480061e8 10 #define RIGHT_L 1 //Arrayindex of the right LEGO Sensor & right LED
beacon 0:15a8480061e8 11
beacon 0:15a8480061e8 12 #define LEFT 7 //Arrayindex of the left Sensor
beacon 0:15a8480061e8 13 #define FWD 6 //Arrayindex of the front Sensor
beacon 0:15a8480061e8 14 #define RIGHT 8 //Arrayindex of the right Sensor
beacon 0:15a8480061e8 15 #define BRIGHT 2 //Arrayindex of the backward right Sensor & left LED
beacon 0:15a8480061e8 16 #define BWD 3 //Arrayindex of the backward Sensor & front LED
beacon 0:15a8480061e8 17 #define BLEFT 4 //Arrayindex of the backsward left Sensor & right LED
beacon 0:15a8480061e8 18
beacon 0:15a8480061e8 19 //ColorSensors:
beacon 0:15a8480061e8 20 #define RED_UPLIMIT 1400 //Default limit in mV
beacon 0:15a8480061e8 21 #define GREEN_DOWNLIMIT 1401//
beacon 0:15a8480061e8 22 #define GREEN_UPLIMIT 2000 //
beacon 0:15a8480061e8 23
beacon 0:15a8480061e8 24 #define GREEN 1 //Will be used to operate arm functions
beacon 0:15a8480061e8 25 #define NOBLOCK 0 //
beacon 0:15a8480061e8 26 #define RED 2 //
beacon 0:15a8480061e8 27
beacon 0:15a8480061e8 28 //Greifer:
beacon 0:15a8480061e8 29 //#define PC_7 SERVO0
beacon 0:15a8480061e8 30
beacon 0:15a8480061e8 31 //Arm
beacon 0:15a8480061e8 32 #define COLLECT_POS 60.0f
beacon 0:15a8480061e8 33 #define RELEASE_POS 85.0f
beacon 0:15a8480061e8 34 #define TAKE_POS -65.0f
beacon 0:15a8480061e8 35
beacon 0:15a8480061e8 36
beacon 0:15a8480061e8 37 //
beacon 0:15a8480061e8 38 #define UP_POS 20.0f //zu bestimmen
beacon 0:15a8480061e8 39 #define DOWN_POS -72.0f //zu bestimmen
beacon 0:15a8480061e8 40
beacon 0:15a8480061e8 41 //Misc:
beacon 0:15a8480061e8 42 #define TIMEOUT 1400 //if the timer reaches TIMEOUT ([TIMEOUT] = 0.1s), the robot will reset.
beacon 0:15a8480061e8 43 #define MAX 3000 //Once the counter reaches MAX, it will turn around.
beacon 0:15a8480061e8 44
beacon 0:15a8480061e8 45 #endif