QtDragon unrecoverable if axis limit hit during auto mode.

More
26 Feb 2021 19:57 - 26 Feb 2021 19:58 #200222 by turbostew
Correct Chris, the override limits work fine. Problem is I cannot change pages. I am stuck in auto mode forever.
Last edit: 26 Feb 2021 19:58 by turbostew.

Please Log in or Create an account to join the conversation.

More
26 Feb 2021 20:05 - 26 Feb 2021 20:09 #200224 by turbostew
I was going to try adding this to the very end of the "hard_limit_tripped" function in qtdragon_handler.py:

if STATUS.is_auto_mode():
_ ACTION.SET_MANUAL_MODE()
_ self.w.manual_mode_button.setChecked(True)


"_" to indicate tab
Last edit: 26 Feb 2021 20:09 by turbostew.

Please Log in or Create an account to join the conversation.

More
26 Feb 2021 20:18 #200226 by cmorley
Ok I pushed some code to allow the settings page to be accessed at anytime.
and I fixed the function call to setting override limits.

Hopefully this addresses the problem.

Please Log in or Create an account to join the conversation.

More
26 Feb 2021 20:20 #200227 by cmorley
this is how I did it if you don't want to wait:
    #######################
    # CALLBACKS FROM FORM #
    #######################

    # main button bar
    def main_tab_changed(self, btn):
        index = btn.property("index")
        if index is None: return
        # if in automode still allow settings to show so override linits can be used
        if STATUS.is_auto_mode() and index != 9:
            self.add_status("Cannot switch pages while in AUTO mode")
            # make sure main page is showing
            self.w.main_tab_widget.setCurrentIndex(0)
            self.w.btn_main.setChecked(True)
            return
        self.w.main_tab_widget.setCurrentIndex(index)
        self.w.stackedWidget.setCurrentIndex(self.tab_index_code[index])
        if index == TAB_SETUP:
            self.w.jogging_frame.hide()
        else:
            self.w.jogging_frame.show()
        if index == TAB_MAIN:
            self.w.stackedWidget_dro.setCurrentIndex(0)

Please Log in or Create an account to join the conversation.

More
26 Feb 2021 20:22 #200228 by cmorley
Also this
    # settings tab
    def chk_override_limits_checked(self, state):
        if state:
            self.add_status("Override limits set")
            ACTION.TOGGLE_LIMITS_OVERRIDE()
        else:
            ACTION.TOGGLE_LIMITS_OVERRIDE()
            self.add_status("Override limits not set")
The following user(s) said Thank You: turbostew

Please Log in or Create an account to join the conversation.

More
26 Feb 2021 20:31 #200229 by turbostew
Why the:

else:
_ ACTION.TOGGLE_LIMITS_OVERRIDE()

?????

Please Log in or Create an account to join the conversation.

More
26 Feb 2021 20:34 #200230 by cmorley
so the overridelimits can be set back to normal

Please Log in or Create an account to join the conversation.

More
26 Feb 2021 21:23 #200234 by tommylight
Plasma guy patiently watching from a corner ... :)

Please Log in or Create an account to join the conversation.

More
26 Feb 2021 22:54 #200254 by persei8
Chris, I am thinking that the override limits checkbox should be on the main page somewhere, most likely in the jog control box. That would eliminate all the workarounds.
Another point is that the border around the mode buttons only indicates that the button is checked. The mode is indicated by the LED. They do get out of sync when a limit is tripped. I agree that you should not have to shut down and restart to recover from it.
Jim

Please Log in or Create an account to join the conversation.

More
26 Feb 2021 23:10 #200257 by cmorley

Another point is that the border around the mode buttons only indicates that the button is checked. The mode is indicated by the LED. They do get out of sync when a limit is tripped.
Jim


You mean the mode buttons? We could improve that with some style magic - I did the same for DRO widgets (homed vrs not)

I don't think allowing to see the setting pages in auto is terrible (in fact the setup page might be nice too) - let's see what the users think.

Please Log in or Create an account to join the conversation.

Moderators: cmorley
Time to create page: 0.119 seconds
Powered by Kunena Forum