From 1c5d5350411f25fde6168c301b68fe7fe125cf0e Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Tue, 13 Apr 2010 00:21:38 +0200 Subject: digital/io/src: add new position_t type --- digital/io/src/move.h | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) (limited to 'digital/io/src/move.h') diff --git a/digital/io/src/move.h b/digital/io/src/move.h index 8eb485a0..8ea9eed4 100644 --- a/digital/io/src/move.h +++ b/digital/io/src/move.h @@ -25,21 +25,7 @@ * * }}} */ -#include "modules/math/geometry/vect.h" -#include "asserv.h" - -/** - * A position. - */ -typedef struct move_position_t -{ - /** X position. */ - int16_t x; - /** Y position. */ - int16_t y; - /** A angle. */ - uint16_t a; -} move_position_t; +#include "defs.h" /** * Move FSM associated data. @@ -47,7 +33,7 @@ typedef struct move_position_t struct move_data_t { /** Final position. */ - move_position_t final; + position_t final; /** Backward direction allowed flag. */ uint8_t backward_movement_allowed; /** Try again counter. */ @@ -68,6 +54,6 @@ extern struct move_data_t move_data; * backward is compulsary. */ void -move_start (asserv_position_t position, uint8_t backward); +move_start (position_t position, uint8_t backward); #endif /* move_h */ -- cgit v1.2.3