summaryrefslogtreecommitdiffhomepage
path: root/digital/io/src/ai_top_cb.c
diff options
context:
space:
mode:
Diffstat (limited to 'digital/io/src/ai_top_cb.c')
-rw-r--r--digital/io/src/ai_top_cb.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/digital/io/src/ai_top_cb.c b/digital/io/src/ai_top_cb.c
index 9c47e5ca..91937ad2 100644
--- a/digital/io/src/ai_top_cb.c
+++ b/digital/io/src/ai_top_cb.c
@@ -58,9 +58,9 @@ ai__IDLE__start (void)
fsm_branch_t
ai__WAIT_INIT_TO_FINISH__init_match_is_started (void)
{
- asserv_position_t pos;
- pos.x = PG_X_VALUE_COMPUTING (2000);
- pos.y = 1000;
+ position_t pos;
+ pos.v.x = PG_X_VALUE_COMPUTING (2000);
+ pos.v.y = 1000;
pos.a = PG_A_VALUE_COMPUTING (0);
move_start (pos, 0);
return ai_next (WAIT_INIT_TO_FINISH, init_match_is_started);
@@ -74,9 +74,9 @@ ai__WAIT_INIT_TO_FINISH__init_match_is_started (void)
fsm_branch_t
ai__GO_FAR__move_fsm_succeed (void)
{
- asserv_position_t pos;
- pos.x = PG_X_VALUE_COMPUTING (1000);
- pos.y = 1000;
+ position_t pos;
+ pos.v.x = PG_X_VALUE_COMPUTING (1000);
+ pos.v.y = 1000;
pos.a = PG_A_VALUE_COMPUTING (0);
move_start (pos, 0);
return ai_next (GO_FAR, move_fsm_succeed);
@@ -90,9 +90,9 @@ ai__GO_FAR__move_fsm_succeed (void)
fsm_branch_t
ai__GO_NEAR__move_fsm_succeed (void)
{
- asserv_position_t pos;
- pos.x = PG_X_VALUE_COMPUTING (2000);
- pos.y = 1000;
+ position_t pos;
+ pos.v.x = PG_X_VALUE_COMPUTING (2000);
+ pos.v.y = 1000;
pos.a = PG_A_VALUE_COMPUTING (0);
move_start (pos, 0);
return ai_next (GO_NEAR, move_fsm_succeed);