From 4e9abfc25206587a3e96cfb2251dae5e81d34b5f Mon Sep 17 00:00:00 2001 From: Jérémy Dufour Date: Mon, 21 Apr 2008 23:55:41 +0200 Subject: * digital/io/src - add a simple function to set the complete bot position ; - integrate its usage in the top FSM. --- digital/io/src/asserv.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'digital/io/src/asserv.h') 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 @@ -264,6 +264,18 @@ void 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. -- cgit v1.2.3