summaryrefslogtreecommitdiff
path: root/digital/io-hub/src/apbirthday/robot.hh
diff options
context:
space:
mode:
Diffstat (limited to 'digital/io-hub/src/apbirthday/robot.hh')
-rw-r--r--digital/io-hub/src/apbirthday/robot.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/digital/io-hub/src/apbirthday/robot.hh b/digital/io-hub/src/apbirthday/robot.hh
index 30dabc90..556e29eb 100644
--- a/digital/io-hub/src/apbirthday/robot.hh
+++ b/digital/io-hub/src/apbirthday/robot.hh
@@ -54,6 +54,8 @@ class Robot : public ucoo::Proto::Handler
void main_loop ();
/// Generate events for the FSM.
bool fsm_gen_event ();
+ /// Generate events for the FSM for demo mode.
+ bool demo_fsm_gen_event ();
/// Receive proto messages.
void proto_handle (ucoo::Proto &proto, char cmd, const uint8_t *args, int size);
/// Send stats.
@@ -85,6 +87,8 @@ class Robot : public ucoo::Proto::Handler
Pressure pressure;
/// Jack debouncing.
Debounce jack;
+ /// Demo mode flag.
+ bool demo;
private:
/// US distance sensors controller.
ucoo::UsDistControl usdist_control_;