From 78d2f3d295c56e976c13b187b7723670411e4101 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Wed, 24 Apr 2013 22:44:30 +0200 Subject: digital/io-hub/src/apbirthday, host/simu: add cherries cannon simulation --- digital/io-hub/src/apbirthday/robot.hh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'digital/io-hub/src/apbirthday/robot.hh') diff --git a/digital/io-hub/src/apbirthday/robot.hh b/digital/io-hub/src/apbirthday/robot.hh index 556e29eb..3d9a62ce 100644 --- a/digital/io-hub/src/apbirthday/robot.hh +++ b/digital/io-hub/src/apbirthday/robot.hh @@ -26,7 +26,11 @@ #include "hardware.hh" #include "asserv.hh" #include "beacon.hh" -#include "potentiometer.hh" +#ifdef TARGET_host +# include "potentiometer.host.hh" +#else +# include "potentiometer.stm32.hh" +#endif #include "fsm_queue.hh" #include "chrono.hh" #include "pressure.hh" @@ -72,7 +76,11 @@ class Robot : public ucoo::Proto::Handler /// Public access to mimot class. Mimot mimot; /// Public access to potentiometer class. +#ifdef TARGET_host + PotentiometerHost pot_regul; +#else Potentiometer pot_regul; +#endif /// Public access to beacon class. Beacon beacon; private: -- cgit v1.2.3