From bf90bbff132481a909d9787eab849da8d20340a9 Mon Sep 17 00:00:00 2001 From: NĂ©lio Laranjeiro Date: Thu, 1 May 2008 22:25:12 +0200 Subject: move_fsm: Ignore obstacles out of the table. --- digital/io/src/move.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'digital/io/src/move.c') diff --git a/digital/io/src/move.c b/digital/io/src/move.c index ac6b9170..005a8fbc 100644 --- a/digital/io/src/move.c +++ b/digital/io/src/move.c @@ -34,10 +34,15 @@ */ struct move_data_t move_data; -/* Go to a position with the start FSM. */ +/** + * Go to a position with the start FSM. + * @param position_x the X position. + * @param position_y the Y position. + * @param backward_movement_allowed do we allow backward movement? + */ void -move_start (uint16_t position_x, uint16_t position_y, - uint8_t backward_movement_allowed) +move_start (uint16_t position_x, uint16_t position_y, uint8_t + backward_movement_allowed) { /* Set parameters. */ move_data.final.x = position_x; -- cgit v1.2.3