From: Nicolas D. <Ba...@us...> - 2011-04-03 02:32:24
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "krobot". The branch, master has been updated via 5e6b68d0723980a8319d0f55cbdfb845d249f162 (commit) from 6d90b631730d84819ae86b701829dc35c1b173f8 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 5e6b68d0723980a8319d0f55cbdfb845d249f162 Author: Nicolas Dandrimont <Nic...@cr...> Date: Sun Apr 3 03:41:27 2011 +0200 [krobot_viewer] Initialize the robot to a correct position ----------------------------------------------------------------------- Changes: diff --git a/info/control2011/src/tools/krobot_viewer.ml b/info/control2011/src/tools/krobot_viewer.ml index 5fa46f5..c83ff15 100644 --- a/info/control2011/src/tools/krobot_viewer.ml +++ b/info/control2011/src/tools/krobot_viewer.ml @@ -523,7 +523,11 @@ module Board = struct let board ={ bus; ui; - state = { x = 0.2; y = 1.9; theta = -0.5 *. pi }; + state = { + x = 0.2; + y = 1.9 +. Krobot_config.robot_size /. 2. -. Krobot_config.wheels_position; + theta = -0.5 *. pi + }; beacon = { xbeacon = 1.; ybeacon = 1.; valid = true }; points = []; event = E.never; hooks/post-receive -- krobot |