summaryrefslogtreecommitdiffhomepage
path: root/digital/io-hub/src/apbirthday
diff options
context:
space:
mode:
authorJerome Jutteau2013-05-01 19:08:11 +0200
committerJerome Jutteau2013-05-01 19:08:11 +0200
commit3872b92328b5f562e2fdb4272c46f50c46144a38 (patch)
treee6d4db68cd76f7752bcc3c75c1277d6e806f27fa /digital/io-hub/src/apbirthday
parentab5dcf1f5afccad7370ef93d817644211548a402 (diff)
apbteam/digital/io-hub/src/apbirthday: activate plate fsm and temp patch
Diffstat (limited to 'digital/io-hub/src/apbirthday')
-rw-r--r--digital/io-hub/src/apbirthday/plate.cc25
1 files changed, 12 insertions, 13 deletions
diff --git a/digital/io-hub/src/apbirthday/plate.cc b/digital/io-hub/src/apbirthday/plate.cc
index d5b43dea..3d3483c0 100644
--- a/digital/io-hub/src/apbirthday/plate.cc
+++ b/digital/io-hub/src/apbirthday/plate.cc
@@ -48,36 +48,35 @@ inline void Plate::ppp ()
inline void Plate::arm_down ()
{
-#ifdef TARGET_host
robot->hardware.cherry_plate_down.set (true);
robot->hardware.cherry_plate_up.set (false);
-#else
- // TODO: temp patch
- robot->hardware.cherry_bad_out.set (true);
- robot->hardware.cherry_bad_in.set (false);
-#endif
}
inline void Plate::arm_up ()
{
-#ifdef TARGET_host
robot->hardware.cherry_plate_down.set (false);
robot->hardware.cherry_plate_up.set (true);
-#else
- // TODO: temp patch
- robot->hardware.cherry_bad_out.set (false);
- robot->hardware.cherry_bad_in.set (true);
-#endif
}
inline void Plate::clamp_open ()
{
+#ifdef TARGET_host
robot->hardware.cherry_plate_clamp.set (false);
+#else
+ robot->hardware.cherry_bad_out.set (false);
+ robot->hardware.cherry_bad_in.set (true);
+#endif
}
inline void Plate::clamp_close ()
{
+#ifdef TARGET_host
robot->hardware.cherry_plate_clamp.set (true);
+#else
+ robot->hardware.cherry_bad_out.set (true);
+ robot->hardware.cherry_bad_in.set (false);
+#endif
+
}
FSM_STATES (PLATE_OFF,
@@ -105,7 +104,7 @@ FSM_TRANS (PLATE_OFF, init_actuators,
on, PLATE_INIT_PREPARE)
{
// TODO: disabled until present.
- if (1)
+ if (0)
return FSM_BRANCH (off);
else
{