E-STOP button behavior
03 Dec 2023 16:57 #287104
by zmrdko
E-STOP button behavior was created by zmrdko
Hi,
how would I change the behavior of E-STOP button background color?
Current implementation changes color after clicking.
I would like to change button background color based of E-STOP status (it is, that if machine is in estop condition, the button would not change the color even after cliking it)
I have opened probe_basic.ui in Qt Designer and since REF ALL has similar behavior to what I want for E-STOP, where REF ALL changes to HOMED based on all_axes_homed.
I found that it has Dynamic property "rules":[{"channels": [{"url": "status:all_axes_homed", "trigger": true}], "property": "Text", "expression": "'HOMED' if ch[0] else 'REF ALL'", "name": "reference_all"}]
This kind of works with button name:
[{"channels": [{"url": "status:estop", "trigger": true}], "property": "Text", "expression": "'ESTOPPED' if ch[0] else 'ESTOP'", "name": "estop"}]
So I guess I need something similar for button background color.
Maybe it would be easier to make new style in probe_basic.qss and change styles using similar rule
I think it would be good to have visual reference to estop status.
Can you please point me in right direction?
Thanks
how would I change the behavior of E-STOP button background color?
Current implementation changes color after clicking.
I would like to change button background color based of E-STOP status (it is, that if machine is in estop condition, the button would not change the color even after cliking it)
I have opened probe_basic.ui in Qt Designer and since REF ALL has similar behavior to what I want for E-STOP, where REF ALL changes to HOMED based on all_axes_homed.
I found that it has Dynamic property "rules":[{"channels": [{"url": "status:all_axes_homed", "trigger": true}], "property": "Text", "expression": "'HOMED' if ch[0] else 'REF ALL'", "name": "reference_all"}]
This kind of works with button name:
[{"channels": [{"url": "status:estop", "trigger": true}], "property": "Text", "expression": "'ESTOPPED' if ch[0] else 'ESTOP'", "name": "estop"}]
So I guess I need something similar for button background color.
Maybe it would be easier to make new style in probe_basic.qss and change styles using similar rule
I think it would be good to have visual reference to estop status.
Can you please point me in right direction?
Thanks
Please Log in or Create an account to join the conversation.
03 Dec 2023 17:04 #287105
by Lcvette
Replied by Lcvette on topic E-STOP button behavior
that's a good idea! widget rules, i will actually make that change to the main ui branch!
The following user(s) said Thank You: zmrdko
Please Log in or Create an account to join the conversation.
04 Dec 2023 09:35 #287174
by zmrdko
Replied by zmrdko on topic E-STOP button behavior
Thanks! It works fine. I replaced the two changed files in my probe_basic directory.
I dont know how this works, but will this be merged into main branch and later into package available in apt?
I dont know how this works, but will this be merged into main branch and later into package available in apt?
Please Log in or Create an account to join the conversation.
04 Dec 2023 09:59 #287176
by rodw
sudo apt update
sudo apt upgrade
Should get any updates that Lcvette and the QTPYVCP team publish to their repository. I think they have a buildbot setup at their end.
Replied by rodw on topic E-STOP button behavior
If you are using the 2.9.1 image of linuxcnc on the downloads page, the QTPYVCP repo is all set up soThanks! It works fine. I replaced the two changed files in my probe_basic directory.
I dont know how this works, but will this be merged into main branch and later into package available in apt?
sudo apt update
sudo apt upgrade
Should get any updates that Lcvette and the QTPYVCP team publish to their repository. I think they have a buildbot setup at their end.
The following user(s) said Thank You: zmrdko
Please Log in or Create an account to join the conversation.
04 Dec 2023 10:27 - 04 Dec 2023 10:28 #287180
by zmrdko
Replied by zmrdko on topic E-STOP button behavior
I used APT installation:
kcjengr.github.io/probe_basic/quick_start_apt.html
Which uses this apt repository:
repository.qtpyvcp.com/apt develop main
So I am not sure I will get the update.
The changes, that Lcvette made, are in branch estop_button_color:
github.com/kcjengr/probe_basic/tree/estop_button_color
kcjengr.github.io/probe_basic/quick_start_apt.html
Which uses this apt repository:
repository.qtpyvcp.com/apt develop main
So I am not sure I will get the update.
The changes, that Lcvette made, are in branch estop_button_color:
github.com/kcjengr/probe_basic/tree/estop_button_color
Last edit: 04 Dec 2023 10:28 by zmrdko.
Please Log in or Create an account to join the conversation.
04 Dec 2023 11:19 #287182
by rodw
Replied by rodw on topic E-STOP button behavior
I'll let Chris advise you here as I don't know how probe basic works but normally you would type
git clone <url>
git checkout <custom_branch_name>
git clone <url>
git checkout <custom_branch_name>
Please Log in or Create an account to join the conversation.
04 Dec 2023 13:39 #287189
by zmrdko
Replied by zmrdko on topic E-STOP button behavior
Thanks for your patience.
I know I can checkout particular branch using git clone, but I was curious if/when this gets to an official release of the probe basic, which would be available for install in this guide:
kcjengr.github.io/probe_basic/quick_start_apt.html
I know I can checkout particular branch using git clone, but I was curious if/when this gets to an official release of the probe basic, which would be available for install in this guide:
kcjengr.github.io/probe_basic/quick_start_apt.html
Please Log in or Create an account to join the conversation.
07 Dec 2023 16:47 #287461
by Lcvette
Replied by Lcvette on topic E-STOP button behavior
If you did apt install then you will get all updates we pusface it's. Branch on your next sudo apt update , sudo apt upgrade.
The estop update is in the latest release.
The estop update is in the latest release.
The following user(s) said Thank You: zmrdko
Please Log in or Create an account to join the conversation.
Time to create page: 0.110 seconds