-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bcb6104
commit f43e970
Showing
11 changed files
with
1,006 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
NMTPlugin.dll | ||
eeprom_plugin.dll | ||
SDOEditorPlugin.dll | ||
PDOInjector.dll |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} | ||
} |
Oops, something went wrong.