I try to integrate my gamepad (which is working under axis) into Probe Basic.
When I read the error report correct "not: already exists" is the complaint.
I tried to format the not function in an other way in the probe_basic_postgui.hal, but that doesn't work.
Even if I only add a simple halfile = not.hal (instead of gamepad-encoder-16.hal) with a single not function I get an error.
You're loading not in the main hal file but with only one name (instance), you need to add the complete list of names (each instance it is used) and loadrt not should only be in one hal file.
Thanks for your help.
I forgott that twopass is not working for POSTGUI_HALFILE.
So I moved the declaration of the "not" function to the core.sim3.hal (which I had to change into the "names=" format) and change the function names accordingly.
in probe_basic_postgui.hal:
comment out:
#loadrt not
#addf not.0 servo-thread
and in core.sim3.hal insert:
loadrt not names=not1
addf not1 servo-thread
in probe_basic_postgui.hal:
comment out:
#net prog-running not.0.in <= halui.program.is-idle
#net cycle-timer time.0.start <= not.0.out
change in:
net prog-running not1.in <= halui.program.is-idle
net cycle-timer time.0.start <= not1.out
in probe_basic_postgui.hal:
# changed due to a conflict
# halui.program.is-paused is used is gamepad-encoder-16.hal and in probe_basic_postgui.hal
#net prog-paused halui.program.is-paused => time.0.pause
net net-halui-program-is-paused => time.0.pause
I have another problem with pb, but in a new thread.