On 26 July 2015 at 10:03, Jullian <socra...@gmail.com> wrote: > As far as i have read, in the stepgen.c, the function of make_pulses() just > processs > the time of periodns. and i cannot find the code processing the position > offset.
That is done by the capture-position HAL function, which calls the update_pos C-function. http://git.linuxcnc.org/gitweb?p=linuxcnc.git;a=blob;f=src/hal/components/stepgen.c;h=addfe3a517bfdb1bac422f97681132b396571954;hb=66ec566cfb09bf6d1e959b48cd53d3aa051ca44e#l714 The line that links the HAL function to the C code is: 530 retval = hal_export_funct("stepgen.capture-position", update_pos, 531 stepgen_array, 1, 0, comp_id); -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto ------------------------------------------------------------------------------ _______________________________________________ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers