From e4442bb23654930f4bc50ad48082815ee59ba46c Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Fri, 10 May 2013 18:56:37 +0200 Subject: digital/io-hub/src/apbirthday: set firing duration according to plate load --- digital/io-hub/src/apbirthday/top.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'digital/io-hub/src/apbirthday/top.cc') diff --git a/digital/io-hub/src/apbirthday/top.cc b/digital/io-hub/src/apbirthday/top.cc index 8c401014..d3a39a99 100644 --- a/digital/io-hub/src/apbirthday/top.cc +++ b/digital/io-hub/src/apbirthday/top.cc @@ -663,7 +663,7 @@ FSM_TRANS (TOP_PLATE_LEAVE, move_failure, TOP_DECISION) FSM_TRANS (TOP_CANNON_GOTO, move_success, TOP_CANNON_FIRING) { - ANGFSM_HANDLE (AI, cannon_fire); + robot->cannon.fire (robot->plate.get_plate_nb ()); } FSM_TRANS (TOP_CANNON_GOTO, move_failure, TOP_DECISION) @@ -822,6 +822,6 @@ FSM_TRANS (TOP_DEMO_PLATE_UP, top_demo_plate, TOP_DEMO_PLATE_DOWN) FSM_TRANS (TOP_DEMO_PLATE_DOWN, top_demo_plate, TOP_INIT_ACTUATORS) { - ANGFSM_HANDLE (AI, cannon_fire); + robot->cannon.fire (); } -- cgit v1.2.3