From a9208039a383a8eeb22d8298564832fce8c195a3 Mon Sep 17 00:00:00 2001 From: Florent Duchon Date: Mon, 24 Dec 2012 15:04:55 +0100 Subject: digital/beacon: add apb structure for apb position --- digital/beacon/src/position.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/digital/beacon/src/position.c b/digital/beacon/src/position.c index a6c8a1cb..448e41cd 100644 --- a/digital/beacon/src/position.c +++ b/digital/beacon/src/position.c @@ -24,15 +24,18 @@ * }}} */ #include +#include #include "position.h" #include "debug_simu.h" #include "recovery.h" #include "update.h" #include "formula.h" #include "trust.h" +#include "misc.h" beacon_s beacon[MAX_BEACON+1]; opponent_s opponent[MAX_OBSTACLE+1]; +apb_s apb_pos; /* This function is used to initialize all needed structures */ void position_init_struct(void) @@ -54,6 +57,12 @@ void position_init_struct(void) opponent[i].y = 0; opponent[i].trust = 100; } + + apb_pos.x = 0; + apb_pos.y = 0; + apb_pos.angle[1] = 0; + apb_pos.angle[2] = 0; + apb_pos.angle[3] = 0; } /* This function update the opponent position when a new angle is avalaible */ -- cgit v1.2.3