Esempio n. 1
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();
 }
Esempio n. 2
0
        private void TransfertCommand_ExecuteMethode()
        {
            terminalText.Append("===DEBUT TRANSFERT===\n");
            OnPropertyChanged(nameof(TerminalText));

            t.ForwardAtDistanceToSpeed(0, 500);
            t.Stop();
            t.Fin();
        }
Esempio n. 3
0
 private static void moveForwardBackward(ThymioV2 thy)
 {
     thy.ForwardAtDistanceToSpeed(0, 500);
     thy.Stop();
     //thy.Evenement();
     thy.BackwardAtDistanceToSpeed(0, 500);
     thy.Stop();
     thy.Fin();
 }
Esempio n. 4
0
        public IActionResult AjouterInstruction()
        {
            list.Add("instruction 2");
            list.Add("instruction 2");

            thymio.ForwardAtDistanceToSpeed(0, 50);

            thymio.Fin();

            //return RedirectToPage("Index1");
            return(View("Index1", list));
        }