Skip to content

Commit

Permalink
Add PDO Injector plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
robincornelius committed Oct 24, 2019
1 parent bcb6104 commit f43e970
Show file tree
Hide file tree
Showing 11 changed files with 1,006 additions and 0 deletions.
27 changes: 27 additions & 0 deletions CanMonitor/CanMonitor.sln
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "can_null_win32", "..\libCan
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "can_nanomsg_win32", "..\libCanOpenSimple2\canfestivaldrivers\can_nanomsg_win32\can_nanomsg_win32.vc10.vcxproj", "{D9B806EB-CF03-4410-9678-5D2C5F470BA1}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PDOInjector", "PDOInjector\PDOInjector.csproj", "{5D2E0351-CFCF-4D32-8602-FC6CEB5F0621}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug UNICODE|Any CPU = Debug UNICODE|Any CPU
Expand Down Expand Up @@ -417,6 +419,30 @@ Global
{D9B806EB-CF03-4410-9678-5D2C5F470BA1}.Release|Mixed Platforms.Build.0 = Release|Win32
{D9B806EB-CF03-4410-9678-5D2C5F470BA1}.Release|x86.ActiveCfg = Release|Win32
{D9B806EB-CF03-4410-9678-5D2C5F470BA1}.Release|x86.Build.0 = Release|Win32
{5D2E0351-CFCF-4D32-8602-FC6CEB5F0621}.Debug UNICODE|Any CPU.ActiveCfg = Debug|Any CPU
{5D2E0351-CFCF-4D32-8602-FC6CEB5F0621}.Debug UNICODE|Any CPU.Build.0 = Debug|Any CPU
{5D2E0351-CFCF-4D32-8602-FC6CEB5F0621}.Debug UNICODE|Mixed Platforms.ActiveCfg = Debug|Any CPU
{5D2E0351-CFCF-4D32-8602-FC6CEB5F0621}.Debug UNICODE|Mixed Platforms.Build.0 = Debug|Any CPU
{5D2E0351-CFCF-4D32-8602-FC6CEB5F0621}.Debug UNICODE|x86.ActiveCfg = Debug|Any CPU
{5D2E0351-CFCF-4D32-8602-FC6CEB5F0621}.Debug UNICODE|x86.Build.0 = Debug|Any CPU
{5D2E0351-CFCF-4D32-8602-FC6CEB5F0621}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5D2E0351-CFCF-4D32-8602-FC6CEB5F0621}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5D2E0351-CFCF-4D32-8602-FC6CEB5F0621}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{5D2E0351-CFCF-4D32-8602-FC6CEB5F0621}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{5D2E0351-CFCF-4D32-8602-FC6CEB5F0621}.Debug|x86.ActiveCfg = Debug|Any CPU
{5D2E0351-CFCF-4D32-8602-FC6CEB5F0621}.Debug|x86.Build.0 = Debug|Any CPU
{5D2E0351-CFCF-4D32-8602-FC6CEB5F0621}.Release UNICODE|Any CPU.ActiveCfg = Release|Any CPU
{5D2E0351-CFCF-4D32-8602-FC6CEB5F0621}.Release UNICODE|Any CPU.Build.0 = Release|Any CPU
{5D2E0351-CFCF-4D32-8602-FC6CEB5F0621}.Release UNICODE|Mixed Platforms.ActiveCfg = Release|Any CPU
{5D2E0351-CFCF-4D32-8602-FC6CEB5F0621}.Release UNICODE|Mixed Platforms.Build.0 = Release|Any CPU
{5D2E0351-CFCF-4D32-8602-FC6CEB5F0621}.Release UNICODE|x86.ActiveCfg = Release|Any CPU
{5D2E0351-CFCF-4D32-8602-FC6CEB5F0621}.Release UNICODE|x86.Build.0 = Release|Any CPU
{5D2E0351-CFCF-4D32-8602-FC6CEB5F0621}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5D2E0351-CFCF-4D32-8602-FC6CEB5F0621}.Release|Any CPU.Build.0 = Release|Any CPU
{5D2E0351-CFCF-4D32-8602-FC6CEB5F0621}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{5D2E0351-CFCF-4D32-8602-FC6CEB5F0621}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{5D2E0351-CFCF-4D32-8602-FC6CEB5F0621}.Release|x86.ActiveCfg = Release|Any CPU
{5D2E0351-CFCF-4D32-8602-FC6CEB5F0621}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand All @@ -434,6 +460,7 @@ Global
{16C74D91-F858-4A70-9641-9228D80A24C0} = {B9AE808B-52B4-48EC-B38D-C8EFB2C567C6}
{D8A23079-A479-4E0E-9777-32EEF436549D} = {B9AE808B-52B4-48EC-B38D-C8EFB2C567C6}
{D9B806EB-CF03-4410-9678-5D2C5F470BA1} = {B9AE808B-52B4-48EC-B38D-C8EFB2C567C6}
{5D2E0351-CFCF-4D32-8602-FC6CEB5F0621} = {99749F1B-19E6-4731-BA65-728BBEFF16E7}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {4E770007-ED1C-460D-ACFC-9DD702614DA7}
Expand Down
1 change: 1 addition & 0 deletions CanMonitor/CanMonitor/autoload.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
NMTPlugin.dll
eeprom_plugin.dll
SDOEditorPlugin.dll
PDOInjector.dll
208 changes: 208 additions & 0 deletions CanMonitor/PDOInjector/PDOForm.Designer.cs

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

35 changes: 35 additions & 0 deletions CanMonitor/PDOInjector/PDOForm.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using libCanopenSimple;

namespace PDOInjector
{
public partial class PDOForm : Form
{
libCanopenSimple.libCanopenSimple lco;
public PDOForm(libCanopenSimple.libCanopenSimple lco)
{
this.lco = lco;

InitializeComponent();
pdoValue1.sendpdo += PdoValue_sendpdo;
pdoValue2.sendpdo += PdoValue_sendpdo;
pdoValue3.sendpdo += PdoValue_sendpdo;
pdoValue4.sendpdo += PdoValue_sendpdo;

}

private void PdoValue_sendpdo(object sender, EventArgs e)
{
PDOValue p = (PDOValue)sender;
lco.writePDO(p.cob, p.data);
}
}
}
Loading

0 comments on commit f43e970

Please sign in to comment.