public HomeController() { list = new List <string>(); fileEmplacement = Path.GetDirectoryName(Path.GetDirectoryName(System.IO.Directory.GetCurrentDirectory())); Debug.WriteLine("------------------------------"); Debug.WriteLine(fileEmplacement); thymio = new ThymioV2(); }
/// <summary> /// Constructor of the DemonstrationViewModel /// </summary> public DemonstrationViewModel() { chooseFunctionCommand = new RelayCommand(new Action <Object>(ChooseFunction_ExecuteCommand)); transfertCommand = new RelayCommand(new Action(TransfertCommand_ExecuteMethode)); homeCommand = new RelayCommand(new Action(HomeCommand_ExecuteMethod)); resetCodeCommand = new RelayCommand(new Action(ResetCodeCommand_ExecuteMethod)); thymio = new ThymioV2(); }
private static void moveForwardBackward(ThymioV2 thy) { thy.ForwardAtDistanceToSpeed(0, 500); thy.Stop(); //thy.Evenement(); thy.BackwardAtDistanceToSpeed(0, 500); thy.Stop(); thy.Fin(); }
static void Main(string[] args) { ThymioV2 thy = new ThymioV2(); //turn(thy); //prog2(thy); moveForwardBackward(thy); Console.Read(); }
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(); }
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(); }
/// <summary> /// Constructor /// </summary> public ProgPageViewModel() { transfertCommand = new RelayCommand(new Action(TransfertCommand_ExecuteMethode), new Func <bool>(TransfertCommand_CanExecuteMethode)); quitCommand = new RelayCommand(new Action(QuitCommand_ExecuteMethode)); testlist.Add("test"); testlist.Add("test3"); testlist.Add("test4"); testlist.Add("ftest"); TransfertState = "En cours"; IsErrorTransfer = true; t = new ThymioV2(); }