Пример #1
0
 private static void turn(ThymioV2 thy)
 {
     thy.TurnLeft(90);
     thy.TurnRight(90);
     thy.Stop();
     thy.TurnLeft(180);
     thy.TurnRight(180);
     thy.Stop();
     thy.Stop();
     thy.Fin();
 }
Пример #2
0
 private static void prog2(ThymioV2 thy)
 {
     thy.TurnLeft(90);
     thy.ForwardAtDistanceToSpeed(0, 400);
     thy.TurnRight(90);
     thy.ForwardAtDistanceToSpeed(0, 400);
     thy.Stop();
     thy.TurnLeft(90);
     thy.ForwardAtDistanceToSpeed(0, 400);
     thy.TurnRight(90);
     thy.ForwardAtDistanceToSpeed(0, 400);
     thy.Stop();
     thy.Fin();
 }