Changement de valeur pour "plus" de precision !

This commit is contained in:
Ulysse Cura 2025-02-01 10:33:52 +01:00
parent eb704397ff
commit 9f3f039bb0
1 changed files with 3 additions and 3 deletions

View File

@ -138,7 +138,7 @@ void loop()
case State::Turn90Blue:
my_IO.setDirWithAngularSpeed(-90.0f);
if(my_IO.getAngle(Axes::Z) < -88.0f)
if(my_IO.getAngle(Axes::Z) < -80.0f)
{
actual_state = State::ForwardToSceneEdge;
}
@ -147,14 +147,14 @@ void loop()
case State::Turn90Yellow:
my_IO.setDirWithAngularSpeed(90.0f);
if(my_IO.getAngle(Axes::Z) >= 88.0f)
if(my_IO.getAngle(Axes::Z) >= 80.0f)
{
actual_state = State::ForwardToSceneEdge;
}
break;
case State::ForwardToSceneEdge:
my_IO.setSpeed(1024.0f);
my_IO.setSpeed(1100.0f);
if(my_IO.getAngle(Axes::Y) > 5.0f)
{