Eurobot2012_Primary
Dependencies: mbed Eurobot_2012_Primary
Diff: globals.h
- Revision:
- 24:7a3906c2f5d5
- Parent:
- 23:1901cb6d0d95
- Child:
- 25:143b19c1fb05
--- a/globals.h Fri May 04 02:50:07 2012 +0000 +++ b/globals.h Fri May 04 05:23:45 2012 +0000 @@ -75,12 +75,17 @@ #define ANGLE_TOR 0.06 // in rad // motion control -#define MOVE_SPEED 35 + +#ifndef MOVE_SPEED_DEF +#define MOVE_SPEED_DEF +static int MOVE_SPEED = 35; +#endif + #define MAX_STEP_RATIO 0.10 //maximum change in the speed //#define TRACK_RATE 10 // +- rate for each wheel when tracking #ifdef ROBOT_PRIMARY -#define FWD_MOVE_P 14 +#define FWD_MOVE_P 18 #define SPIN_MOVE_P 5.8 #else #define FWD_MOVE_P 3.2