summaryrefslogtreecommitdiffhomepage
path: root/digital/io/src/asserv.h
diff options
context:
space:
mode:
authorJérémy Dufour2008-04-21 23:55:41 +0200
committerJérémy Dufour2008-04-21 23:55:41 +0200
commit4e9abfc25206587a3e96cfb2251dae5e81d34b5f (patch)
tree451f16a8523a676bbb04b01ac53d98a9ac5dfc07 /digital/io/src/asserv.h
parent06f1c2cd6f511ea0990d3bb60103cf9512b8d634 (diff)
* digital/io/src
- add a simple function to set the complete bot position ; - integrate its usage in the top FSM.
Diffstat (limited to 'digital/io/src/asserv.h')
-rw-r--r--digital/io/src/asserv.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/digital/io/src/asserv.h b/digital/io/src/asserv.h
index 5cb0c12b..04ebe68f 100644
--- a/digital/io/src/asserv.h
+++ b/digital/io/src/asserv.h
@@ -265,6 +265,18 @@ asserv_set_speed (uint8_t linear_high, uint8_t angular_high,
uint8_t linear_low, uint8_t angular_low);
/**
+ * Set the complete position of the bot.
+ * This is an helpful function preventing you from calling multiples other
+ * ones.
+ * It calls other class commands.
+ * @param x X position
+ * @param y Y position
+ * @param angle angular position
+ */
+void
+asserv_set_position (int32_t x, int32_t y, int16_t angle);
+
+/**
* Go to an absolute position in (X, Y).
* @param x the x position on the table.
* @param y the y position on the table.