QtDragon unrecoverable if axis limit hit during auto mode.

More
5 years 8 months ago - 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.
Last edit: 5 years 8 months ago by turbostew.

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

More
5 years 8 months ago - 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
Last edit: 5 years 8 months ago by turbostew.

Please Log in or Create an account 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 or Create an account 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 or Create an account 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")
The following user(s) said Thank You: turbostew

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

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

else:
_ ACTION.TOGGLE_LIMITS_OVERRIDE()

?????

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

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