robincornelius / libedssharp

A CanOpen EDS editor and library in C# with CanOpenNode export for Object Dictionary
GNU General Public License v3.0
227 stars 134 forks source link

Unable to map Sub Indexes of Records to PDOs #258

Open StormOli opened 3 years ago

StormOli commented 3 years ago

I'm unable to map any sub index of a RECORD object to either a Tx or Rx PDO. It either selects a random entry that doesn't even have PDO permissions, or it adds an unknown blank entry. Sometimes it also gets stuck on the dropdown after I press enter with no way to continue without closing and opening the device.

All other object types seem to work as expected. I'm currently running version 0.8-125-g85dfd8e

StormOli commented 3 years ago

The issue seems to be known about. In DevicePDOView2.cs in method Vcc_ValueChangedEvent there is a comment

//warning if the subindex is still hex the converter will not know about it //we may need to append 0x to keep it correct

I can confirm that all my subindexes in my RECORD are marked as hex in the 2nd value of "bits". When would this not be the case and what is the reason for not appending 0x?

When I do append "0x" in the "UpdatePDOinfo" method then the PDOs map as I would expect.