Ajout de la possibilitée de changer la vitesse de dance.

This commit is contained in:
Ulysse Cura 2025-01-31 19:29:45 +01:00
parent 237c9be64c
commit f8b7938e7c
1 changed files with 4 additions and 2 deletions

6
IO.hpp
View File

@ -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};
};