logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

tpcomp - Trajectory Planning (tp) module skeleton

Author

       Dewey Garrett

Description

       Example of a trajectory planning (tp) module buildable with halcompile.

       The  tpcomp.comp  file (src/hal/components/tpcomp.comp) illustrates a method to use halcompile to build a
       trajectory planning module based on the files used for the default trajectory planner (tpmod).

       The example tpcomp.comp is not usable until modified for the user  environment.   To  create  a  runnable
       tpcomp  module,  the  tpcomp.comp  file  must  be  edited  to  supply  1) a valid '#define TOPDIR' and 2)
       references to valid source code file names for all files used.

       To avoid updates that overwrite tpcomp.comp, best practice is to rename the file and its  component  name
       (example: user_tpcomp.comp creates module: user_tpcomp).

       The  (renamed)  component can be built and installed with halcompile and then substituted for the default
       tp module (tpmod) using:

         $ linuxcnc -tuser_tpcomp someconfig.ini

       or by inifile setting: [TRAJ]TPMOD=user_tpcompNote:If using a deb install:

       1) halcompile is provided by the deb package linuxcnc-dev

       2) This source file for BRANCHNAME (master,2.9,etc) is downloadable from github:

       https://github.com/LinuxCNC/linuxcnc/blob/BRANCHNAME/src/hal/components/tpcomp.comp

License

       GPL

LinuxCNC Documentation                             2025-08-07                                          TPCOMP(9)

Name

       tpcomp - Trajectory Planning (tp) module skeleton

Pins

tpcomp.N.is-module bit out (default: 1)

Synopsis


       Custom Trajectory Planning module loaded with [TRAJ]TPMOD=tpcomp

See Also