tim-balloon / TIMflight

Flight MCP repo
0 stars 0 forks source link

Remove dependency on customized `soem` library - `ec_SDOwrite8()`, etc. #49

Open evanmayer opened 1 year ago

evanmayer commented 1 year ago

Describe the bug If we upgrade soem, many functions in ec_motors.c will break. Anything that calls

To Reproduce Steps to reproduce the behavior:

  1. Go to ./external_libs/soem/soem/ethercatcoe.c
  2. Scroll down to 1370
  3. See functions that we have
  4. Compare against contemporary version https://github.com/OpenEtherCATsociety/SOEM/blob/6afd2f50cc4266527fc0e0b526e57338c2129fb6/soem/ethercatcoe.c

Expected behavior mcp either provides these convenience functions in its own code, for instance something that already needs to link against soem, like ec_motors.c, or stops using ec_SDOwrite[8,16,32]() in favor of ec_SDOwrite().

Environment info (please complete the following information):

Additional context I determined that soem doesn't provide ec_SDOwrite[8,16,32]() functions by looking at the state of the repo where the file header date first matches the one we have.

https://github.com/OpenEtherCATsociety/SOEM/blob/6afd2f50cc4266527fc0e0b526e57338c2129fb6/soem/ethercatcoe.c

The newest version doesn't supply them either.