diff --git a/op3_demo/include/op3_demo/action_demo.h b/op3_demo/include/op3_demo/action_demo.h index f96e6ef..bac1eab 100644 --- a/op3_demo/include/op3_demo/action_demo.h +++ b/op3_demo/include/op3_demo/action_demo.h @@ -55,6 +55,7 @@ class ActionDemo : public OPDemo PlayAction = 1, PauseAction = 2, StopAction = 3, + ReadyAction = 4, }; const int SPIN_RATE; diff --git a/op3_demo/src/action/action_demo.cpp b/op3_demo/src/action/action_demo.cpp index 67bb393..76a238c 100644 --- a/op3_demo/src/action/action_demo.cpp +++ b/op3_demo/src/action/action_demo.cpp @@ -110,6 +110,8 @@ void ActionDemo::process() stopMP3(); brakeAction(); + play_status_ = ReadyAction; + break; } @@ -118,6 +120,8 @@ void ActionDemo::process() stopMP3(); stopAction(); + play_status_ = ReadyAction; + break; }