From ccd3c182799be61b2d8ac319c009652ece94ff7d Mon Sep 17 00:00:00 2001 From: Jerome Jutteau Date: Wed, 1 May 2013 18:07:58 +0200 Subject: digital/io-hub/src/apbirthday: patch to map bad cherry on plate arm --- digital/io-hub/src/apbirthday/plate.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'digital/io-hub/src') 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 () -- cgit v1.2.3