Changement de valeur pour "plus" de precision !
This commit is contained in:
parent
eb704397ff
commit
9f3f039bb0
6
Main.ino
6
Main.ino
|
@ -138,7 +138,7 @@ void loop()
|
||||||
case State::Turn90Blue:
|
case State::Turn90Blue:
|
||||||
my_IO.setDirWithAngularSpeed(-90.0f);
|
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;
|
actual_state = State::ForwardToSceneEdge;
|
||||||
}
|
}
|
||||||
|
@ -147,14 +147,14 @@ void loop()
|
||||||
case State::Turn90Yellow:
|
case State::Turn90Yellow:
|
||||||
my_IO.setDirWithAngularSpeed(90.0f);
|
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;
|
actual_state = State::ForwardToSceneEdge;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case State::ForwardToSceneEdge:
|
case State::ForwardToSceneEdge:
|
||||||
my_IO.setSpeed(1024.0f);
|
my_IO.setSpeed(1100.0f);
|
||||||
|
|
||||||
if(my_IO.getAngle(Axes::Y) > 5.0f)
|
if(my_IO.getAngle(Axes::Y) > 5.0f)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue