[Home]Parameters For Kinematics

LinuxCNCKnowledgeBase | RecentChanges | PageIndex | Preferences | LinuxCNC.org

Showing revision 6
-- Under construction --

Kinematics Parameter

will publish here how to create additional parameters in the ini file and pass them to a kinematics module

Why do we need parameters in Kinematics ?

How can we create parameters for Kinematics ?

By the following steps:

ini parameter

You can use any existing paramneter or add kinematic specific

create and assign hal parameter

in the hal file with a line like setp mykin.L0 [AXIS_0]HOME_OFFSET

we create a new parameter and it will receive its value from inifile, section AXIS_0, HOME_OFFSET

read hal parameter in kinematic module

with

hal_param_float_new("dualbipod.L0", HAL_RW, &My_Param, comp_id))

we assign this value to a previously created kinematic parameter. My_Param is data type hal_float_t.


LinuxCNCKnowledgeBase | RecentChanges | PageIndex | Preferences | LinuxCNC.org
This page is read-only. Follow the BasicSteps to edit pages. | View other revisions | View current revision
Edited August 13, 2010 10:57 am by Step4linux (diff)
Search:
Published under a Creative Commons License