Skip to content

Commit

Permalink
Merge pull request #109 from ziteh/iss108
Browse files Browse the repository at this point in the history
Fix the bug #108
  • Loading branch information
ziteh committed Aug 11, 2022
2 parents d1beecc + 04bcb2c commit 8c14894
Show file tree
Hide file tree
Showing 6 changed files with 227 additions and 127 deletions.
117 changes: 65 additions & 52 deletions RASDK.Arm.TestForms/Form1.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions RASDK.Arm.TestForms/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@ public Form1()
comboBoxArmType.SelectedIndex = 0;
}

private void buttonCheckConnect_Click(object sender, EventArgs e)
{
_arm = _arm ?? RoboticArmFactory();

var connected = _arm.Connected;
_message.Show($"Connected: {connected}.");
}

private void buttonConnect_Click(object sender, EventArgs e)
{
_arm = _arm ?? RoboticArmFactory();
Expand Down
22 changes: 22 additions & 0 deletions RASDK.Arm/Hiwin/Exception.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
namespace RASDK.Arm.Hiwin
{
public class HiwinRobotControlException : System.Exception
{
public HiwinRobotControlException() : base()
{ }

public HiwinRobotControlException(string message) : base(message)
{ }

public HiwinRobotControlException(int code) : base($"HIWIN robot error code: {code}.")
{ }

public HiwinRobotControlException(int code, string message)
: base($"HIWIN robot error code: {code}. {message}.")
{ }

public HiwinRobotControlException(string message, System.Exception innerException)
: base(message, innerException)
{ }
}
}
33 changes: 0 additions & 33 deletions RASDK.Arm/Hiwin/ReturnCodeCheck.cs

This file was deleted.

Loading

0 comments on commit 8c14894

Please sign in to comment.