public void goToPos(URCoordinates goC, bool waitDone = false) { if (!serverOn) { Console.WriteLine("尚未連線"); return; } StreamWriter txt; txt = new StreamWriter("Pos//GoTo.pos", false); txt.WriteLine("position"); txt.WriteLine(goC.ToPos()); txt.Flush(); txt.Close(); ReadingFile = "Pos//GoTo.pos"; cmd = mode.moveByFile; if (waitDone) { while (cmd == mode.stop) { ; } } }
public URCoordinates(URCoordinates input) { X = input.X; Y = input.Y; Z = input.Z; Rx = input.Rx; Ry = input.Ry; Rz = input.Rz; }