QtDragon unrecoverable if axis limit hit during auto mode.

More
5 years 8 months ago #200222 by turbostew
Correct Chris, the override limits work fine. Problem is I cannot change pages. I am stuck in auto mode forever.

Please Log in to join the conversation.

More
5 years 8 months ago #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

Please Log in to join the conversation.

More
5 years 8 months ago #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 to join the conversation.

More
5 years 8 months ago #200227 by cmorley
this is how I did it if you don't want to wait:
Code:
####################### # 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 to join the conversation.

More
5 years 8 months ago #200228 by cmorley
Also this
Code:
# 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")

Please Log in to join the conversation.

More
5 years 8 months ago #200229 by turbostew
Why the:

else:
_ ACTION.TOGGLE_LIMITS_OVERRIDE()

?????

Please Log in to join the conversation.

More
5 years 8 months ago #200230 by cmorley
so the overridelimits can be set back to normal

Please Log in to join the conversation.

More
5 years 8 months ago #200234 by tommylight
Plasma guy patiently watching from a corner ... :)

Please Log in to join the conversation.

More
5 years 8 months ago #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 to join the conversation.

More
5 years 8 months ago #200257 by cmorley

persei8 wrote: 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 to join the conversation.

Time to create page: 0.061 seconds
Powered by Kunena Forum