void InitCom() { netCom = new NetworkCom(); netData = new NetworkCom(); netMove = new NetworkCom(); netTrigger = new NetworkCom(); netFan = new NetworkCom(); netCom.InitCom(6969); netData.InitCom(6968); netMove.InitCom(6967); netTrigger.InitCom(6966); netFan.InitCom(6965); }
public SendPosition(NetworkCom network, Movement movement) { NetMove = network; moveData = movement; old.BaseRotation = Convert.ToInt32(Math.Round(moveData.baseMovemend.AngleInPWM)); old.Elb0 = Convert.ToInt32(Math.Round(moveData.elbow0.AngleInPWM)); old.Elb1 = Convert.ToInt32(Math.Round(moveData.elbow1.AngleInPWM)); old.Elb2 = Convert.ToInt32(Math.Round(moveData.elbow2.AngleInPWM)); old.GripperRot = Convert.ToInt32(Math.Round(moveData.griperRotation.AngleInPWM)); old.Gripper = Convert.ToInt32(Math.Round(moveData.griper.AngleInPWM)); actual = old; }