summaryrefslogtreecommitdiffhomepage
path: root/digital/io-hub/src/guybrush/bottom_clamp.c
diff options
context:
space:
mode:
authorNicolas Schodet2012-05-17 05:15:28 +0200
committerNicolas Schodet2012-05-17 05:15:28 +0200
commitfb5f5bacada7e196597614fcaf4ef4fe31707fc6 (patch)
treee09394d8107bccf0b32cd6a0992719e8229783fa /digital/io-hub/src/guybrush/bottom_clamp.c
parent6b2767404dea6da55357d87baab4860ddbed5960 (diff)
digital/io-hub/src/guybrush: invert start condition on upper clamp
Diffstat (limited to 'digital/io-hub/src/guybrush/bottom_clamp.c')
-rw-r--r--digital/io-hub/src/guybrush/bottom_clamp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/digital/io-hub/src/guybrush/bottom_clamp.c b/digital/io-hub/src/guybrush/bottom_clamp.c
index 737b0b11..ca44c98b 100644
--- a/digital/io-hub/src/guybrush/bottom_clamp.c
+++ b/digital/io-hub/src/guybrush/bottom_clamp.c
@@ -288,7 +288,7 @@ FSM_TRANS_TIMEOUT (CLAMP_INIT_OPEN_ALL_CLAMPS,TIMEOUT_OPEN_CLAMPS,
upper_set_out,CLAMP_SHITTY_STATE)
{
/*if upper set is inside the robot*/
- if(!IO_GET(CONTACT_UPPER_CLAMP_UP))
+ if(IO_GET(CONTACT_UPPER_CLAMP_DOWN))
{
ctx.pos_current = 0;
/* closing all the clamps except the clamp 1 to proceed the find_O function. */