QtDragon_hd does not unhome an axis.....

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

Please Log in to join the conversation.

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

More
5 years 6 months ago #204246 by turbostew
Thank You QtDragon Master!!!!!

Please Log in to join the conversation.

Time to create page: 0.139 seconds
Powered by Kunena Forum