- Posts: 128
- Thank you received: 0
QtDragon_hd does not unhome an axis.....
5 years 6 months ago #204228
by turbostew
QtDragon_hd does not unhome an axis..... was created 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)
- 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.
5 years 6 months ago #204231
by cmorley
Replied by cmorley on topic QtDragon_hd does not unhome an axis.....
nice catch.
change the 'homed' to 'isHomed' in the line:
if self.w["dro_axis_{}".format(axis)].property('homed') is True:
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.
Time to create page: 0.139 seconds
