Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed Servo ServoArm
Fork of PES_Yanick by
Diff: Headers/Declarations.h
- Revision:
- 8:593f82e66bdf
- Parent:
- 6:ba26dd3251b3
- Child:
- 9:ac362674c480
--- a/Headers/Declarations.h Wed Apr 26 14:09:08 2017 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,40 +0,0 @@ -#ifndef DECLARATIONS_H -#define DECLARATIONS_H - -//DistanceSensors: -#define NEAR 0.18f //Used for distance Sensors. If they're to near to a wall -> turn -#define NEAR_LEGO 0.20f //If the DistanceSensors are near to a Lego... - -#define LEFT_L 5 //Arrayindex of the left LEGO Sensor & left LED -#define FWD_L 0 //Arrayindex of the front LEGO Sensor & front LED -#define RIGHT_L 1 //Arrayindex of the right LEGO Sensor & right LED - -#define LEFT 7 //Arrayindex of the left Sensor -#define FWD 6 //Arrayindex of the front Sensor -#define RIGHT 8 //Arrayindex of the right Sensor -#define BRIGHT 2 //Arrayindex of the backward right Sensor & left LED -#define BWD 3 //Arrayindex of the backward Sensor & front LED -#define BLEFT 4 //Arrayindex of the backsward left Sensor & right LED - -//ColorSensors: -#define RED_UPLIMIT 500 //Default limit in mV -#define GREEN_DOWNLIMIT 501 // -#define GREEN_UPLIMIT 1200 // - -#define GREEN 1 //Will be used to operate arm functions -#define NOBLOCK 0 // -#define RED -1 // - -//Greifer: -#define PC_7 SERVO0 - -//Arm -#define COLLECT_POS 65.0f -#define RELEASE_POS 80.0f -#define TAKE_POS -70.0f - -//Misc: -#define TIMEOUT 140 //if the timer reaches TIMEOUT ([TIMEOUT] = 0.1s), the robot will reset. -#define MAX 50 //Once the counter reaches MAX, it will turn around. - -#endif \ No newline at end of file
