nasa-jpl / fastcat

C++ EtherCAT Device Command & Control Library
Other
42 stars 11 forks source link

Fixes units of jsd_read timeout in Process() #41

Closed d-loret closed 2 years ago

d-loret commented 2 years ago

Sets the EtherCAT cycle period to be the value of the timeout when fetching the EtherCAT frame via the jsd_read function. The underlying SOEM's function, ecx_receive_processdata expects the timeout to be in microseconds. The issue was that Manager::Process passed a timeout expressed in nanoseconds. Hence, the fix was to express such quantity in microseconds.