From: Jérémie D. <Ba...@us...> - 2011-04-20 21:13:52
|
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 736df6ea119063d15715e99a1d812b5411244871 (commit) from 1626abcabb9345aa8858641cc53da6a41b6d7033 (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 736df6ea119063d15715e99a1d812b5411244871 Author: Jérémie Dimino <je...@di...> Date: Wed Apr 20 23:13:15 2011 +0200 [krobot_planner] fix the sending of the trajectory when receiving a Send ----------------------------------------------------------------------- Changes: diff --git a/info/control2011/src/tools/krobot_planner.ml b/info/control2011/src/tools/krobot_planner.ml index 9c4b837..176826e 100644 --- a/info/control2011/src/tools/krobot_planner.ml +++ b/info/control2011/src/tools/krobot_planner.ml @@ -309,8 +309,9 @@ let handle_message planner (timestamp, message) = | Send -> ignore ( let ts = Unix.gettimeofday () in + let vertices = if planner.moving then planner.vertices else planner.position :: planner.vertices in join [ - Krobot_bus.send planner.bus (ts, Trajectory_vertices(planner.vertices, planner.curves)); + Krobot_bus.send planner.bus (ts, Trajectory_vertices(vertices, planner.curves)); Krobot_bus.send planner.bus (ts, Trajectory_moving planner.moving); ] ) hooks/post-receive -- krobot |