summaryrefslogtreecommitdiffhomepage
path: root/digital/io/src/path.h
diff options
context:
space:
mode:
Diffstat (limited to 'digital/io/src/path.h')
-rw-r--r--digital/io/src/path.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/digital/io/src/path.h b/digital/io/src/path.h
index cf19ec3d..a314fcec 100644
--- a/digital/io/src/path.h
+++ b/digital/io/src/path.h
@@ -25,6 +25,17 @@
*
* }}} */
+/** Obstacle. */
+struct path_obstacle_t
+{
+ /** Center. */
+ int16_t x, y;
+ /** Radius. */
+ uint16_t r;
+ /** Validity counter, when this is zero, the obstacle is ignored. */
+ uint16_t valid;
+};
+
/** Initialise path finder. */
void
path_init (int16_t border_xmin, int16_t border_ymin,