ROLLING BACK TO 2.7 FROM 2.8

More
16 Nov 2018 23:18 #120876 by COlger81

File Attachment:

File Name: my_LinuxCN...1-16.hal
File Size:25 KB

File Attachment:

File Name: my_LinuxCN...1-16.ini
File Size:4 KB
Attachments:

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

More
17 Nov 2018 00:05 #120878 by rodw
Replied by rodw on topic ROLLING BACK TO 2.7 FROM 2.8
IF your problem is just with Gmoccappy, you might be able to fool your 2.8 system by copying an older version of Gmocappy.py to your current system. I think its moved to the bin folder on install but here is the source.
github.com/LinuxCNC/linuxcnc/blob/master...gmoccapy/gmoccapy.py

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

More
17 Nov 2018 00:59 #120879 by cmorley
If the sim config works then there is most likely nothing wrong with Gmoccapy.
Some times the error messages are misleading.
For instance it mentions that a widget is missing usually means that an error occurred somewhere that stopped the loading of widgets properly.

The answer is not obvious from the information I have.

I see in your HAL file you use a bunch of other custom python components too.
I would start by removing anything not required to actually load the screen, then start adding things back until and error is noticed.

Chris M

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

More
17 Nov 2018 02:18 #120882 by COlger81
This was just added and or modified a few days ago. The errors at start of gmoccapy point directly to this code that was just added. I'm using gmoccapy from 3932 with no issues. Everything works as it should until the update below was pushed through.

@@ -2514,6 +2514,8 @@ def _update_halui_pin(self):
self.initialized = False
self.widgets.spc_rapid.set_value(self.stat.rapidrate * 100)
self.rapidrate = self.stat.rapidrate
self.widgets.adj_max_vel.set_value( self.stat.max_velocity * 60 * self.faktor )
self.max_velocity = self.stat.max_velocity
self.initialized = True
def _update_slider(self, widgetlist):
@@ -2701,10 +2703,15 @@ def on_Combi_DRO_units_changed(self, widget, metric_units):
# machine units = imperial
else:
self.faktor = 25.4
self._update_slider(widgetlist)
self.turtle_jog = self.turtle_jog * self.faktor
self.rabbit_jog = self.rabbit_jog * self.faktor
self._update_slider( widgetlist )
else:
# display units equal machine units would be factor = 1,
# but if factor not equal 1.0 than we have to reconvert from previous first
self.turtle_jog = self.turtle_jog / self.faktor
self.rabbit_jog = self.rabbit_jog / self.faktor
if self.faktor != 1.0:
self.faktor = 1 / self.faktor
self._update_slider(widgetlist)

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

More
17 Nov 2018 04:59 #120887 by cmorley
yes I see the mistake now. It was a merge error.
I am not familiar with Norberts code so didn't see it right away.

Chris M

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

More
17 Nov 2018 13:07 - 17 Nov 2018 13:11 #120896 by newbynobi
@COlger81
@cmorley

Thanks for pointing me to the bug. Chris was right, a wrong merge of 2.7 to master caused the error.
I just pushed a fix to master. New gmoccapy release is nor 2.3.3.4

COlger81,
you will need to wait a little to be able to get the new release from buildbot, if you use github, you will get it immediately.

I did some changes to hal_mdihistory, so please report if there are still errors with MDI Input. I changed that widget to react same as a terminal window. If you use the arrow keys to select an item, it will be placed directly in the entry widget, so a push on the <RETURN> button will send the command to LinuxCNC. I did that to avoid the need to use a mouse.

Thanks Norbert
Last edit: 17 Nov 2018 13:11 by newbynobi.

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

More
17 Nov 2018 13:37 #120899 by COlger81
Norbert,
As far as the MDI is concerned, some people use "pyautogui" to map things in python such as matrix keyboards and physical buttons to mimic typing in MDI. Would the change to the code have an effect on this?

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

Time to create page: 0.108 seconds
Powered by Kunena Forum