From 894e8307503e67088b114cbbe644f58c7c2aa089 Mon Sep 17 00:00:00 2001 From: Florent Duchon Date: Thu, 28 Mar 2013 22:14:27 +0100 Subject: digital/beacon: rework of opponents and apb robot structures --- digital/beacon/src/position.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'digital/beacon/src/position.h') diff --git a/digital/beacon/src/position.h b/digital/beacon/src/position.h index dec4f1f9..d8a6d011 100644 --- a/digital/beacon/src/position.h +++ b/digital/beacon/src/position.h @@ -45,6 +45,13 @@ typedef enum{ OPPONENT_2 } TOpponent_ID; +typedef enum{ + POV_BEACON_1 = 1, + POV_BEACON_2, + POV_BEACON_3 +} TBeacon_ID; + + typedef enum{ X, Y @@ -59,21 +66,14 @@ typedef struct float angle[MAX_OBSTACLE+1]; }beacon_s; -/* Obstacle structure */ +/* Robot structure */ typedef struct { int16_t x; int16_t y; int8_t trust; -}opponent_s; - -/* Obstacle structure */ -typedef struct -{ - int16_t x; - int16_t y; float angle[MAX_BEACON+1]; -}apb_s; +}robot_s; /* Coordinates structure */ -- cgit v1.2.3