Skip to content

Commit

Permalink
Merge pull request #2 from nfu-irs-lab/update
Browse files Browse the repository at this point in the history
Update RASDK from v0.2.2 to v0.3.0
  • Loading branch information
ziteh authored Mar 17, 2022
2 parents 910669a + 02406b9 commit abd5821
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions ExclusiveControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ public partial class ExclusiveControl : UserControl
public RASDK.Arm.RoboticArm Arm;
public RASDK.Gripper.IGripperController Gripper;
public RASDK.Basic.ILogHandler LogHandler;
public RASDK.Basic.Message.IMessage MessageHandler;

public Config Config { get; protected set; } = new Config();
public RASDK.Basic.Message.IMessageHandler MessageHandler;

public ExclusiveControl()
{
InitializeComponent();
}

public Config Config { get; protected set; } = new Config();
}
}
}
8 changes: 4 additions & 4 deletions MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ public partial class MainForm : Form
/// </summary>
private readonly List<NumericUpDown> TargetPosition;

private readonly ExclusiveControl _exclusiveControl;

/// <summary>
/// 連線裝置組。
/// </summary>
Expand All @@ -43,16 +45,14 @@ public partial class MainForm : Form
/// </summary>
private ILogHandler LogHandler;

private readonly ExclusiveControl _exclusiveControl;

/// <summary>
/// 手臂藍牙控制器。
/// </summary>
// private IBluetoothController Bluetooth = null;
/// <summary>
/// 訊息處理器。
/// </summary>
private IMessage MessageHandler;
private IMessageHandler MessageHandler;

public MainForm(ExclusiveControl exclusiveControl = null)
{
Expand Down Expand Up @@ -94,7 +94,7 @@ public MainForm(ExclusiveControl exclusiveControl = null)

// 物件實體化。
LogHandler = new LogHandler(exclusiveControl.Config.LogFilePath, LoggingLevel.Trace);
MessageHandler = new GeneralMessage(LogHandler);
MessageHandler = new GeneralMessageHandler(LogHandler);
Arm = new RASDK.Arm.Hiwin.RoboticArm(MessageHandler, exclusiveControl.Config.ArmIp);
// Gripper = new GripperController(Configuration.GripperComPort, Message);
// Bluetooth = new BluetoothArmController(Configuration.BluetoothComPort, Arm, Gripper, Message);
Expand Down
6 changes: 3 additions & 3 deletions MainForm.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="RASDK.Arm, Version=1.0.0.0, Culture=neutral, processorArchitecture=AMD64">
<HintPath>..\packages\NFUIRSL.RASDK.0.2.2\lib\net472\RASDK.Arm.dll</HintPath>
<HintPath>..\packages\NFUIRSL.RASDK.0.3.0\lib\net472\RASDK.Arm.dll</HintPath>
</Reference>
<Reference Include="RASDK.Basic, Version=1.0.0.0, Culture=neutral, processorArchitecture=AMD64">
<HintPath>..\packages\NFUIRSL.RASDK.0.2.2\lib\net472\RASDK.Basic.dll</HintPath>
<HintPath>..\packages\NFUIRSL.RASDK.0.3.0\lib\net472\RASDK.Basic.dll</HintPath>
</Reference>
<Reference Include="RASDK.Gripper, Version=1.0.0.0, Culture=neutral, processorArchitecture=AMD64">
<HintPath>..\packages\NFUIRSL.RASDK.0.2.2\lib\net472\RASDK.Gripper.dll</HintPath>
<HintPath>..\packages\NFUIRSL.RASDK.0.3.0\lib\net472\RASDK.Gripper.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Configuration" />
Expand Down
2 changes: 1 addition & 1 deletion packages.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="NFUIRSL.RASDK" version="0.2.2" targetFramework="net472" />
<package id="NFUIRSL.RASDK" version="0.3.0" targetFramework="net472" />
</packages>

0 comments on commit abd5821

Please sign in to comment.