summaryrefslogtreecommitdiff
path: root/digital/beacon/src/position.h
diff options
context:
space:
mode:
authorFlorent Duchon2012-12-24 15:06:41 +0100
committerFlorent Duchon2012-12-24 17:51:11 +0100
commitb379ad8daeed8e38b59714ec4365dfd513445d57 (patch)
treefd0eaf457f0ffcd537b001e6fa67be666bb3d1eb /digital/beacon/src/position.h
parenta9208039a383a8eeb22d8298564832fce8c195a3 (diff)
digital/beacon: add apb robot position formula and check color before sending to io
Diffstat (limited to 'digital/beacon/src/position.h')
-rw-r--r--digital/beacon/src/position.h9
1 files changed, 9 insertions, 0 deletions
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
{