From e5955adc9c33cee7d2fdda723fb02a2af5e612be Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Thu, 7 May 2009 22:39:46 +0200 Subject: * digital/asserv: - added forward go to the wall. - use defines for contacts. --- digital/asserv/src/asserv/simu.host.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'digital/asserv/src/asserv/simu.host.c') diff --git a/digital/asserv/src/asserv/simu.host.c b/digital/asserv/src/asserv/simu.host.c index 0570729a..f89fabd4 100644 --- a/digital/asserv/src/asserv/simu.host.c +++ b/digital/asserv/src/asserv/simu.host.c @@ -40,6 +40,8 @@ #include "pwm.h" #include "aux.h" +#include "contacts.h" + #include "motor_model.host.h" #include "models.host.h" @@ -149,7 +151,8 @@ simu_sensor_update (void) { 170.0, 0.0 }, }; static const uint8_t sensors_bit[] = - { _BV (0), _BV (1), _BV (3), }; + { IO_BV (CONTACT_BACK_LEFT_IO), IO_BV (CONTACT_BACK_RIGHT_IO), + IO_BV (CONTACT_CENTER_IO), }; static const double table_width = 3000.0, table_height = 2100.0; PINC = 0; unsigned int i; -- cgit v1.2.3