These are chat archives for machinekit/machinekit

27th
Oct 2016
zhivko
@zhivko
Oct 27 2016 06:56
ini.traj.max_angualar_velocity
and
ini.traj.default_angular_velocity
zhivko
@zhivko
Oct 27 2016 14:11

I try to:

newinst thc thc.0 scale_offset=119000.0

but I get:

THC.hal:4: Realtime module 'thc' loaded
THC.hal:4: rc=-1
Unknown parameter `scale_offset=119000.0'
passing args for 'thc.0' failed: 'scale_offset=119000.0'Shutting down and cleaning up Machinekit...

in thc.icomp I find:

// Parameters
pin io float vel_scale "The scale to convert the Velocity signal to Volts";
pin io float scale_offset "The offset of the velocity input at 0 volts";

so scale_offset is parameter - what is wrong with my newinst call in my hal file?

zhivko
@zhivko
Oct 27 2016 14:29

If I try with moving parameter out of newinst to setp in my hal file like:

setp thc.0.scale_offset 119000.0

I get:

THC.hal:46: setting parameter 'thc.0.scale_offset' to '119000.0'
THC.hal:46: parameter or pin 'thc.0.scale_offset' not found
Shutting down and cleaning up Machinekit...