diff --git a/IO.hpp b/IO.hpp index 638ac0f..e961541 100644 --- a/IO.hpp +++ b/IO.hpp @@ -178,8 +178,9 @@ class IO { } } - void startDancingAction() + void startDancingAction(int dancing_action_delta_angle = DANCING_ACTION_DELTA_ANGLE) { + m_dancing_action_delta_angle = dancing_action_delta_angle; m_is_dancing = true; } @@ -237,7 +238,7 @@ class IO { { delta_time = 0; - actual_angle += actual_dir * DANCING_ACTION_DELTA_ANGLE; + actual_angle += actual_dir * m_dancing_action_delta_angle; } if(actual_angle <= 43) @@ -299,4 +300,5 @@ class IO { float m_init_x, m_init_y, m_init_z; float m_dir {0}; float m_speed {0}; + int m_dancing_action_delta_angle {DANCING_ACTION_DELTA_ANGLE}; }; \ No newline at end of file