-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Gmoccapy: Add native hal pins to be used instead of halui #3504
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Gmoccapy: Add native hal pins to be used instead of halui #3504
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) |
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.