Hi guys,
i have a test setup for a pendant with a MESA 7i73 and connected a potentiometer to halui.rapid-override.counts. The slider in the axis GUI also moves from 0...100%. Now I leave the potentiometer at 50% and restart LinuxCNC. After the restart the user interface shows 100% although the potentiometer is still set to 50%. Only after I turn the potentiometer a little bit and the value changes, it is also shown in the user interface (it jumps immediately to 50%). Is that supposed to be like this? Is there a way that Linuxcnc reads the value of the potis at startup and sets the slider accordingly.
I can imagine to put the 3.3V for the potentiometer on an output of the 7i73 which I switch to 3V3 when loading the HAL to get this effect. But this should only be a workarround and I hope that someone of you can tell me what I did wrong.
Code:
setp halui.rapid-override.direct-value true
setp halui.rapid-override.count-enable true
setp hm2_7i76e.0.7i73.0.2.analogin0-scalemax 100
setp halui.rapid-override.scale 0.01
net analog0 <= hm2_7i76e.0.7i73.0.2.analogin0
net analog0 => conv_float_s32.rapid.in
net rapid-override <= conv_float_s32.rapid.out
net rapid-override => halui.rapid-override.counts
I am working with version 2.8.0-pre1-6125.
Thanks
Daniel