ICube-Robotics / ethercat_driver_ros2

Hardware Interface for EtherCAT module integration with ros2_control
https://icube-robotics.github.io/ethercat_driver_ros2/
Apache License 2.0
125 stars 32 forks source link

Handling of big values for SDO config #89

Open CaPlasberg opened 8 months ago

CaPlasberg commented 8 months ago

I encountered that problem when I wanted to set up user-defined units on a drive (Nanotec PD4-E). The following line throws some exceptions (I'll include the thrown error as soon as I'm back at the hardware): - {index: 0x60A8, sub_index: 0, type: uint32, value: 4244701184} # set meter and power to 1e-3, 0xFD010000=d4244701184 To solve the problem, the value had to be translated to a signed value: - {index: 0x60A8, sub_index: 0, type: uint32, value: -50266112} It'd be great if such values were supported for type uint32 objects.