From b379ad8daeed8e38b59714ec4365dfd513445d57 Mon Sep 17 00:00:00 2001 From: Florent Duchon Date: Mon, 24 Dec 2012 15:06:41 +0100 Subject: digital/beacon: add apb robot position formula and check color before sending to io --- digital/beacon/src/position.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'digital/beacon/src/position.h') diff --git a/digital/beacon/src/position.h b/digital/beacon/src/position.h index 67ec4173..dec4f1f9 100644 --- a/digital/beacon/src/position.h +++ b/digital/beacon/src/position.h @@ -67,6 +67,15 @@ typedef struct int8_t trust; }opponent_s; +/* Obstacle structure */ +typedef struct +{ + int16_t x; + int16_t y; + float angle[MAX_BEACON+1]; +}apb_s; + + /* Coordinates structure */ typedef struct { -- cgit v1.2.3