qtvismach, a axis toolpath

More
1 year 10 months ago #317648 by cmorley
Replied by cmorley on topic qtvismach, a axis toolpath
I should have explained more.
point = [wx, wy, wz]
if not self.plotdata or point != self.plotdata[-1]:
self.plotdata.append(point)
This adds a plot point. We would need to change it to also add color.

point = [wx, wy, wz,color]
or maybe better:
self.plotdata.append([point, color])

then later in the file:
#GL.glColor3f(1.0, 0.5, 0.5)

GL.glBegin(GL.GL_LINE_STRIP)
for p,c in self.plotdata:
GL.glColor3f(*c)
GL.glVertex3f(*p)
GL.glEnd()

a few other initialization and clearing details to follow up. but that might work.

Please Log in to join the conversation.

More
1 year 10 months ago #317656 by cmorley
Replied by cmorley on topic qtvismach, a axis toolpath
Ok I pushed some work on this.

vismach_mill_xyz should show case it.

in your vismach script you need to add:
on top:
Code:
from qtvcp.core import Status STATUS = Status()

and in the Window class:
Code:
        STATUS.connect('motion-type-changed', lambda w, data: v.choosePlotColor(data))         # uncomment to change feed color and to see all colors         #v.setColorsAttribute('FEED',(0,1,0))         #print(v.colors)

Please Log in to join the conversation.

More
1 year 10 months ago #317692 by MarkoPolo
The coloring of the movements works very well, that's what I wanted, thanks for another good job.

In my simulation, the "myhud" panel would be more to my liking in the upper right corner. How can I set this up?

Please Log in to join the conversation.

More
1 year 9 months ago #317801 by cmorley
Replied by cmorley on topic qtvismach, a axis toolpath
It's hard coded to the left.
in halHud/hud draw() function defines it.

I'll look into it when I can.

Please Log in to join the conversation.

More
1 year 9 months ago #317989 by cmorley
Replied by cmorley on topic qtvismach, a axis toolpath
pushed to master:

myHud.display_on_right()

Leme know if there is any problem.

Please Log in to join the conversation.

More
1 year 9 months ago #318120 by MarkoPolo
Works very well, no problems.
Thanks

Please Log in to join the conversation.

More
1 year 8 months ago #321178 by MarkoPolo
There is one problem after the last changes.

The tool trace disappears after 30 minutes.

It looks like the tool trace is constantly being saved, even though the machine and simulation are not making any movement. I think it is constantly saving to some buffer which, when filled, deletes the oldest content.

The screen in vismach is refreshed every 100ms, if I decrease this value, the trace will disappear earlier than 30 minutes.

Please Log in to join the conversation.

More
1 year 8 months ago #322898 by MarkoPolo
Hi Chris

Have you looked at the problem I wrote about earlier?

Please Log in to join the conversation.

More
1 year 7 months ago #322908 by cmorley
Replied by cmorley on topic qtvismach, a axis toolpath
I see the basic problem.
The original vismach updates every 100ms but only if something changes.
Qtvcp updates every 100 ms no matter what.

I'm looking into what library options there are to correct this.
In the mean time, you can increase the buffer in qt_vismach.py
look for:
self.plotlen = 16000

Please Log in to join the conversation.

More
1 year 7 months ago #322910 by cmorley
Replied by cmorley on topic qtvismach, a axis toolpath
Or just pull again - I got it fixed.

Please Log in to join the conversation.

Time to create page: 0.077 seconds
Powered by Kunena Forum