summaryrefslogtreecommitdiff
path: root/digital/io-hub/src/apbirthday/robot.hh
diff options
context:
space:
mode:
authorNicolas Schodet2013-03-21 21:20:18 +0100
committerNicolas Schodet2013-03-21 21:20:18 +0100
commit0c5ba0b879baa5291d35dd0a5028ab9a5d52560d (patch)
tree0d1dbc0a4c91776e3db686ba672755ba5dfa8bd8 /digital/io-hub/src/apbirthday/robot.hh
parentc9f14499885b3c087aa5b107156cc91b48917a7c (diff)
digital/io-hub/src/apbirthday: add FSM queue
Diffstat (limited to 'digital/io-hub/src/apbirthday/robot.hh')
-rw-r--r--digital/io-hub/src/apbirthday/robot.hh6
1 files changed, 5 insertions, 1 deletions
diff --git a/digital/io-hub/src/apbirthday/robot.hh b/digital/io-hub/src/apbirthday/robot.hh
index e0b50f41..d9590e59 100644
--- a/digital/io-hub/src/apbirthday/robot.hh
+++ b/digital/io-hub/src/apbirthday/robot.hh
@@ -25,6 +25,7 @@
// }}}
#include "hardware.hh"
#include "asserv.hh"
+#include "fsm_queue.hh"
#include "ucoolib/base/proto/proto.hh"
@@ -40,7 +41,7 @@ class Robot : public ucoo::Proto::Handler
/// Main program loop.
void main_loop ();
/// Generate events for the FSM.
- void fsm_gen_event ();
+ bool fsm_gen_event ();
/// Receive proto messages.
void proto_handle (ucoo::Proto &proto, char cmd, const uint8_t *args, int size);
public:
@@ -55,6 +56,9 @@ class Robot : public ucoo::Proto::Handler
private:
/// Proto associated to each serial interface.
ucoo::Proto dev_proto, zb_proto, usb_proto;
+ public:
+ /// Public access to deferred events FSM queue.
+ FsmQueue fsm_queue;
};
/// Global instance pointer.