You can use any existing parameter or add a new kinematic specific 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 modulewith hal_param_float_new("mykin.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. |
assign value |
will publish here how to create additional parameters in the ini file and pass them to a kinematics module
By the following steps:
we create a new parameter and it will receive its value from inifile, section AXIS_0, HOME_OFFSET
hal_param_float_new("mykin.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.