Bonjour;
j'ai un bout de programme écrit en C# pour commander les 3 bras d'un robot.
Quelqu'un peut t-il m'aider à le réécrire en C ou C++ ou m'expliquer ce que ces lignes veulent dirent.



Code C# : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
public void Turn_off()
		{
 
			while(true)
			{
				System.Threading.Thread.Sleep(800);
				hpib.WriteString("1MD?",true);
				System.Threading.Thread.Sleep(50);
				if(int.Parse(hpib.ReadString())==1)
				{
					System.Threading.Thread.Sleep(300);
					hpib.WriteString("2MD?",true);
					System.Threading.Thread.Sleep(50);
 
					if(int.Parse(hpib.ReadString())==1)
					{
						System.Threading.Thread.Sleep(300);
						hpib.WriteString("3MD?",true);
						System.Threading.Thread.Sleep(50);
						if(int.Parse(hpib.ReadString())==1)
						{
							break;
						}
					}
				}
			}
			hpib.WriteString("1mf;2mf;3mf",true);
			System.Threading.Thread.Sleep(50);
		}

sachant que 1MD?;2MD?;3MD? , 1mf, 2mf; 3mf sont des instructions pour commander les bras du robot (1MD?= motor on de l'axe 1
2mf= moteur axe 2 off )