|
From: Jérémie D. <Ba...@us...> - 2010-02-10 21:31:46
|
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 d36204afda2e453843002b5941b805ad5d71ec49 (commit)
from 2cb0b2a1da174f7a32acebc769607b05a1cd4938 (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 d36204afda2e453843002b5941b805ad5d71ec49
Author: Jérémie Dimino <je...@di...>
Date: Wed Feb 10 22:31:15 2010 +0100
Stop motors in smooth mode
-----------------------------------------------------------------------
Changes:
diff --git a/PC_Mainboard/clients/security/hard_stop.ml b/PC_Mainboard/clients/security/hard_stop.ml
index 124230c..a5559cc 100644
--- a/PC_Mainboard/clients/security/hard_stop.ml
+++ b/PC_Mainboard/clients/security/hard_stop.ml
@@ -31,7 +31,7 @@ let handle_colide krobot sensors =
lwt () = Krobot.inhibit_forward krobot duration in
if !state_forward = OK then begin
state_forward := Stopped;
- Krobot.stop_motors krobot ~motor:`Both ~mode:`Off;
+ Krobot.stop_motors krobot ~motor:`Both ~mode:`Smooth;
end else
return ()
end else begin
@@ -42,7 +42,7 @@ let handle_colide krobot sensors =
lwt () = Krobot.inhibit_backward krobot duration in
if !state_backward = OK then begin
state_backward := Stopped;
- Krobot.stop_motors krobot ~motor:`Both ~mode:`Off;
+ Krobot.stop_motors krobot ~motor:`Both ~mode:`Smooth;
end else
return ()
end else begin
hooks/post-receive
--
krobot
|