summaryrefslogtreecommitdiff
path: root/digital/io/src
diff options
context:
space:
mode:
authorNicolas Schodet2009-05-07 22:39:46 +0200
committerNicolas Schodet2009-05-07 22:39:46 +0200
commite5955adc9c33cee7d2fdda723fb02a2af5e612be (patch)
tree55f63d8ea3ae235d09b15d75fea685bedac85c20 /digital/io/src
parent362824bd00aad8e470baceef83f1c7b24dec6656 (diff)
* digital/asserv:
- added forward go to the wall. - use defines for contacts.
Diffstat (limited to 'digital/io/src')
-rw-r--r--digital/io/src/asserv.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/digital/io/src/asserv.c b/digital/io/src/asserv.c
index a3175176..e6cbc1b4 100644
--- a/digital/io/src/asserv.c
+++ b/digital/io/src/asserv.c
@@ -455,8 +455,10 @@ asserv_goto_xya (uint32_t x, uint32_t y, int16_t a)
void
asserv_go_to_the_wall (void)
{
+ /* Put direction as parameters */
+ asserv_twi_buffer_param[0] = 1;
/* Send the go the wall command to the asserv board */
- asserv_twi_send_command ('f', 0);
+ asserv_twi_send_command ('f', 1);
}
/* Move forward to approach a ditributor. */