On 29/05/15 17:13,
schoo...@btinternet.com wrote:
>
> On 29/05/15 16:58, Daren Schwenke wrote:
>> Ok. Changed:
>>
>> addf pid.0.do-pid-calcsservo-thread
>>
>> to look like the limit threads:
>>
>> addf pid.0servo-thread
>>
>> and it started, and looks to be updating.
>
> Yes, was just going to reply with that
>
> For some reason the function is getting exported as the component name
> instead of the function name.
>
> Cannot immediately see why that would be, other components with named
> functions like gantry, export the function names gantry.0.read
> gantry.0.write etc as intended
>
> Will come back when I have figured it out
OK I have found it
A fix I made some time back to function exports had a typo in it, which
only affected single named functions:-(
There are only a handful of components that actually name a single
function, pid and at_pid being two,
all the others just use default FUNCTION(_) and that equates to
exporting the component name
I will put in a PR and will be fixed soon
Apologies for the problems
As you said in your other post, things are moving fast at present, you
guys with the up to date pulls are doing the bug catching !!
Proof of fix below
mick@INTEL-i7:/usr/src/machinekit-arceye/src/hal/i_components$ halcmd
loadrt pid
<commandline>:0: Realtime module 'pid' loaded
mick@INTEL-i7:/usr/src/machinekit-arceye/src/hal/i_components$ halcmd
show pin
Component Pins:
Comp Inst Type Dir Value Name
Epsilon Flags
32770 158 float IN 0 pid.0.Dgain 0.000010 0
32770 158 float IN 0 pid.0.FF0 0.000010 0
32770 158 float IN 0 pid.0.FF1 0.000010 0
32770 158 float IN 0 pid.0.FF2 0.000010 0
32770 158 float IN 0 pid.0.Igain 0.000010 0
32770 158 float IN 1 pid.0.Pgain 0.000010 0
32770 158 float IN 0 pid.0.bias 0.000010 0
32770 158 float IN 0 pid.0.command 0.000010 0
32770 158 float IN 0 pid.0.command-deriv
0.000010 0
32770 158 float OUT 0 pid.0.commandD 0.000010 0
32770 158 float OUT 0 pid.0.commandDD 0.000010 0
32770 158 float IN 0 pid.0.deadband 0.000010 0
32770 158 s32 OUT 0 pid.0.do-pid-calcs.time
0
32770 158 bit IN FALSE pid.0.enable 0
32770 158 float OUT 0 pid.0.error 0.000010 0
32770 158 bit IN FALSE pid.0.error-previous-target
0
32770 158 float OUT 0 pid.0.errorD 0.000010 0
32770 158 float OUT 0 pid.0.errorI 0.000010 0
32770 158 float IN 0 pid.0.feedback 0.000010 0
32770 158 float IN 0 pid.0.feedback-deriv
0.000010 0
32770 158 bit IN FALSE pid.0.index-enable 0
32770 158 float IN 0 pid.0.maxcmdD 0.000010 0
32770 158 float IN 0 pid.0.maxcmdDD 0.000010 0
32770 158 float IN 0 pid.0.maxerror 0.000010 0
32770 158 float IN 0 pid.0.maxerrorD 0.000010 0
32770 158 float IN 0 pid.0.maxerrorI 0.000010 0
32770 158 float IN 0 pid.0.maxoutput 0.000010 0
32770 158 float OUT 0 pid.0.output 0.000010 0
32770 158 bit OUT FALSE pid.0.saturated 0
32770 158 s32 OUT 0 pid.0.saturated-count 0
32770 158 float OUT 0 pid.0.saturated-s 0.000010 0
32770 s32 OUT 0 pid.funct.time 0
mick@INTEL-i7:/usr/src/machinekit-arceye/src/hal/i_components$ halcmd
show funct
Exported Functions:
Comp Inst CodeAddr Arg FP Users Type Name
32769 7f048831ca32 00000000 NO 0 user delinst
32769 7f048831c8b3 00000000 NO 0 user newinst
32770 158 7f0486e7e637 7f048828e300 YES 0 xthread
pid.0.do-pid-calcs
32770 7f0486e7da2a 7f0486e7f362 NO 0 xthread pid.funct