rubienr / machinekit

http://machinekit.io
Other
4 stars 0 forks source link

XHC whb04b-6: Flood/Mist #3

Open rubienr opened 5 years ago

rubienr commented 5 years ago

Accept pull request for Flood/Mist:

rubienr commented 5 years ago

The toggle2nist component makes the pull request obsolete: see https://github.com/alkabal/machinekit/pull/1 and http://linuxcnc.org/docs/html/man/man9/toggle2nist.9.html

alkabal commented 5 years ago

finally i have write this, else not work

now i have some issue with debounce

loadrt toggle2nist names=toggle2nist.mist,toggle2nist.flood

addf toggle2nist.flood servo-thread addf toggle2nist.mist servo-thread

net pdnt.macro.15 whb.button.macro-15 toggle2nist.flood.in net pdnt.flood.is-on halui.flood.is-on toggle2nist.flood.is-on net pdnt.flood.on toggle2nist.flood.on halui.flood.on net pdnt.flood.off toggle2nist.flood.off halui.flood.off

net pdnt.macro.16 whb.button.macro-16 toggle2nist.mist.in net pdnt.mist.is-on halui.mist.is-on toggle2nist.mist.is-on net pdnt.mist.on toggle2nist.mist.on halui.mist.on net pdnt.mist.off toggle2nist.mist.off halui.mist.off

alkabal commented 5 years ago

Hi

I think you forget to add these line in your help file

addf toggle2nist.flood servo-thread addf toggle2nist.mist servo-thread

These toggle2nist need to add some debounce delay, for now i not understand correctly how this work.

Br

alkabal commented 5 years ago

Hi

I have try to use debounce with toggle2nist but result are bad.

Have you try to use this function with one relay connected to corresponding output ?

Br