]> rtime.felk.cvut.cz Git - eurobot/public.git/commitdiff
robodin: Update playground dimensions and robot starting position
authorMichal Vokac <vokac.m@gmail.com>
Sat, 25 May 2013 11:46:16 +0000 (13:46 +0200)
committerMichal Vokac <vokac.m@gmail.com>
Sat, 25 May 2013 11:46:16 +0000 (13:46 +0200)
src/robodim/robodim.h

index 01df0456ec90c98692cd2decbe5dc22edec50238..75c0690ea7f8b5eacc68be1706e6b395bae33444 100644 (file)
 #define ROBOT_AXIS_TO_FIGURE_CENTER_MM 300.0
 #define ROBOT_AXIS_TO_FIGURE_CENTER_M (ROBOT_AXIS_TO_FIGURE_CENTER_MM/1000.0)
 
-#define ROBOT_START_X_MM       ROBOT_AXIS_TO_BACK_MM
+#define ROBOT_START_X_MM       (ROBOT_WIDTH_MM / 2.0 + 20.0)
 #define ROBOT_START_X_M         (ROBOT_START_X_MM / 1000.0)
-#define ROBOT_START_Y_MM        (PLAYGROUND_HEIGHT_MM - (ROBOT_WIDTH_MM / 2.0))
+#define ROBOT_START_Y_MM        (ROBOT_AXIS_TO_BACK_MM)
 #define ROBOT_START_Y_M         (ROBOT_START_Y_MM / 1000.0)
-#define ROBOT_START_ANGLE_DEG   0
+#define ROBOT_START_ANGLE_DEG   90
 
 /* maxon motor parameters ratio */
 /* DO NOT change this if not shure what you are doing !!! */
@@ -88,9 +88,9 @@
 /**
  * PLAYGROUND DIMENSIONS
  */
-#define PLAYGROUND_WIDTH_MM    20000
+#define PLAYGROUND_WIDTH_MM    1400
 #define PLAYGROUND_WIDTH_M     (PLAYGROUND_WIDTH_MM/1000.0)
-#define PLAYGROUND_HEIGHT_MM   20000
+#define PLAYGROUND_HEIGHT_MM   2800
 #define PLAYGROUND_HEIGHT_M    (PLAYGROUND_HEIGHT_MM/1000.0)
 
 /**