summaryrefslogtreecommitdiffhomepage
path: root/digital/io-hub
diff options
context:
space:
mode:
Diffstat (limited to 'digital/io-hub')
-rw-r--r--digital/io-hub/src/apbirthday/plate.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/digital/io-hub/src/apbirthday/plate.cc b/digital/io-hub/src/apbirthday/plate.cc
index 9b38b771..d5b43dea 100644
--- a/digital/io-hub/src/apbirthday/plate.cc
+++ b/digital/io-hub/src/apbirthday/plate.cc
@@ -48,14 +48,26 @@ 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 ()