QtDragon_hd does not unhome an axis.....

More
31 Mar 2021 15:02 - 31 Mar 2021 15:03 #204228 by turbostew
So I notice when I am homed, I can press the home button for an axis, I would expect that axis to "unhome" and turn red. What really happens is when you press the button the axis immediately rehomes itself. I tried to debug this and the code will never get a True from "self.w["dro_axis_{}".format(axis)].property('homed')". (but the DRO is green)

- def btn_home_clicked(self):
- - joint = self.w.sender().property('joint')
- - axis = INFO.GET_NAME_FROM_JOINT.get(joint).lower()
- - print (axis)
- - print (self.w["dro_axis_{}".format(axis)].property('homed'))
- - if self.w["dro_axis_{}".format(axis)].property('homed') is True:
- -- ACTION.SET_MACHINE_UNHOMED(joint)
- - else:
- -- ACTION.SET_MACHINE_HOMING(joint)
Last edit: 31 Mar 2021 15:03 by turbostew.

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

More
31 Mar 2021 15:23 #204231 by cmorley
nice catch.
change the 'homed' to 'isHomed' in the line:

if self.w["dro_axis_{}".format(axis)].property('homed') is True:

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

More
31 Mar 2021 17:38 #204246 by turbostew
Thank You QtDragon Master!!!!!

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

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