analogdevicesinc / TMC-API

TRINAMIC's IC API
MIT License
198 stars 89 forks source link

Which document should I use under the ramp folder #35

Closed chenzc217 closed 1 year ago

chenzc217 commented 1 year ago

There are 6 files in the X:\TMC\TMC-API-master\tmc\ramp folder, including two sets of files, one set of author is created by ed on 07, 23, 2018, and the other set of author is created by LK on 09 11, 2018. I think the newer the date, the more complete the function will be, but I only see the comment but not the content in LK's document. (// We're still too fast, we're going to miss the target position // Let the deceleration continue until velocity is zero, then either // home when within homing distance or start a new ramp (RAMP_DRIVING) // towards the target.) Which author's linear ramp generator file do I need to use? Please help me to use the ramp generator in my project

trinamic-ed commented 1 year ago

Hello, which evaluation board do you want to use with the ramp? If you are e.g. using the TMC4671-EVAL then you can use "tmc/ramp/LinearRamp.h" as shown in the include of the eval board: https://github.com/trinamic/TMC-EvalSystem/blob/master/boards/TMC4671_eval.c.

Regards, Enrico

chenzc217 commented 1 year ago

OK,thanks