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 517ffeb0bb66fcbc50ebf1ff4e70f1279fb01358 (commit)
from 3b208ec28291deddce260e77fb3e05f8b810dfcd (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 517ffeb0bb66fcbc50ebf1ff4e70f1279fb01358
Author: Xavier Lagorce <Xav...@cr...>
Date: Tue Apr 5 15:04:41 2011 +0200
[krobot_viewer] Graphical adjustements to oponent representation (and init).
-----------------------------------------------------------------------
Changes:
diff --git a/info/control2011/src/tools/krobot_viewer.ml b/info/control2011/src/tools/krobot_viewer.ml
index 08b3d16..00bb54c 100644
--- a/info/control2011/src/tools/krobot_viewer.ml
+++ b/info/control2011/src/tools/krobot_viewer.ml
@@ -569,12 +569,17 @@ module Board = struct
y = 1.9 +. Krobot_config.robot_size /. 2. -. Krobot_config.wheels_position };
theta = -0.5 *. pi
};
- beacon = { xbeacon = 1.; ybeacon = 1.; valid = true };
+ beacon = { xbeacon = 1.; ybeacon = 1.; valid = false };
points = [];
bezier = [];
event = E.never;
moving = false;
} in
+ board.ui#beacon_status#set_text "-";
+ board.ui#beacon_distance#set_text "-";
+ board.ui#beacon_angle#set_text "-";
+ board.ui#beacon_period#set_text "-";
+ queue_draw board;
(* Move the robot on the board when we receive odometry
informations. *)
board.event <- (
@@ -605,7 +610,7 @@ module Board = struct
let beacon = { xbeacon = x; ybeacon = y; valid; } in
if beacon <> board.beacon then begin
board.beacon <- beacon;
- board.ui#beacon_status#set_text (if valid then "valid" else "invalid");
+ board.ui#beacon_status#set_text (if valid then "valid" else "-");
board.ui#beacon_distance#set_text (string_of_float distance);
board.ui#beacon_angle#set_text (string_of_float angle);
board.ui#beacon_period#set_text (string_of_float period);
hooks/post-receive
--
krobot
|