Gmoccapy: Add native hal pins to be used instead of halui#3504
Gmoccapy: Add native hal pins to be used instead of halui#3504Sigma1912 wants to merge 1 commit intoLinuxCNC:masterfrom
Conversation
Would the dedicated start pin prohibit starting the program when in edit mode? |
|
Yes the native pins only allow actions that are also allowed when using the gui buttons. |
|
I don't think it's necessary to prohibit the program from starting when in edit mode IMHO. We only have to make sure that it continues when leaving from that. |
|
I don't see much point in starting a program in edit mode but the problem here is a more fundamental one. The gui should really be in control of what an operator can or cannot do. Circumventing the GUI by running what is essentially a second UI in parallel is always going to be asking for trouble. |
|
It would be a good idea to update the documentation. |
I'll be happy to update the docs after we have agreed to merged this. |
|
I think a better in the long run way is to have a HALUI type program that talks directly to the GUI code. I mean a complete rethink of linuxcnc's communication process would be great but I don't think that's gonna happen soon :) |
|
Just to put this into perspective, this is how many pins Gmoccapy currently creates (This PR proposes to make four (4) more): |
|
Yes a better way would be to get rid of as many as possible (in the longer future) |
|
IMHO creating hal pin in every GUI is not the way to go. Imagine like dealing with a handling machine connected to a production machine, only a few IO's are needed to ensure a secure communication between to systems. So best would be to implement a standard "gateway" in linuxcnc and every GUI should use that API. Norbert |
|
IMHO I dont preffer this "native hal pins" for Gmoccapy, because c-morley is working on ZMQ communication. For ZMQ, it will be necessary to create an interface in Gmoccapy, which should solve the reasons why this PR was created.
I don't have it that sophisticated. I just use the pin halui.halui-mdi-is-running. It's ready here: |
|
Closed a superceded by other developments. |
Halui pins are frequently used to interface hardware panel buttons that are not aligned with Gmoccapy's screen buttons. Using halui pins together with any gui can cause unexpected behavior.
Example: starting program execution in program edit mode:
https://forum.linuxcnc.org/gmoccapy/56544-gmoccapy-3-5-1?start=0#331201
By providing native hal pins the behavior can be controlled by the gui itself.
At this point only pins for program.start .stop .pause and .resume are added.