Forum

Welcome Guest 

Show/Hide Header

Welcome Guest, posting in this forum requires registration.





Pages: [1]
Author Topic: new server software version problem
hendrik
Newbie
Posts: 4
Permalink
Post new server software version problem
on: February 10, 2012, 23:20
Quote

A couple of days ago I updated the machine server software (arduino) to the new (r243) after the blogpost 'Saver vectors'.

Plotting bitmap images did not change a thing but problems arose when I wanted to plot vector images.
Just after initialising the machine (first 2 to 5 commands) the gondola heads of to the bottom left corner. The right motor keeps turning endlesly and won't stop unless I pull the plug.
Image

I checked the queuefiles but eveything seemed fine there.

Finally I downgraded the software back to revision 190 and eveythings works fine.

I am using an arduino Uno and recent LadyAda mshield.

Hendrik

And finally Sandy thanks for all your great work!

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: new server software version problem
on: February 11, 2012, 23:33
Quote

Cheers Hendrik, I will have a closer look at this too. I admit I've not been testing so hard on the regular _a1 code because I've been preoccupied with the _mega branch, so it's possible I've just done something very stupid.

I am assuming that your r243 test routine was the same as your r190 test routine, that is, update firmware, upload machine spec to machine, set home, then draw vectors. So the first actual drawing command will have been the same for both versions.

One test you could do is to make a note of the values in the first command (or the command that sends the machine off on a wild goose chase), and try and move the gondola to those coordinates by using "move pen". Press "i" to show the debugging overlay that will display the mouse position in steps and mm. And I'll get a chance to look at the _a1 code later this week.

The difference between the two versions is that the later version uses Longs instead of Ints for positioning, which is important if your machine cords get longer than 32,768 steps. If they don't, then you will be fine with the old code for the time being, but I will figure it out too.

Cheers!
Sandy Noble

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: new server software version problem
on: February 12, 2012, 22:05
Quote

It's a puzzle Hendrik, I've just had a test on this, and I get proper positioning with r243 ok. Would you mind sharing your polargraph.properties.txt and the SVG you're having the issue with so I can try and replicate it? Email would be good.

ta
sn

hendrik
Newbie
Posts: 4
Permalink
Post Re: new server software version problem
on: February 13, 2012, 09:27
Quote

OK, great I finally found it! It only occurs when the is no area selected.
I did not care about selecting an area when drawing vectors. In the interface you also can't select an area when there is not bitmap image loaded. It also seems that having a frame selected is not sufficient. The difference between frame and area is not so clear to me.
The workaround that works for me is to load an image first, select an area, clear the image and load a vector file.

.. nice to start the week with a solution!
And glad I found out this way about the debugging overlay.

Sandy thanks for your time to investigate on this.

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: new server software version problem
on: February 13, 2012, 10:54
Quote

That's even more of a puzzle Hendrik, I'm stumped! The vector drawing routines don't pay any attention to selection area, only to the page size. And neither of those things would change anything that'd been altered between r234 and r190, but if it's working, I'm happy to just back away slowly!

Right, area vs frame is not clear, you're right. Basically the position of the frame gets saved in the properties file. So you can use it as a way to save the position of your selection area. So you pull your selection area, then convert it to frame, and then save properties, and when you reload you can hit select frame to get back to your exact same selection area.

sn

Pages: [1]
Mingle Forum by cartpauj
Version: 1.0.34 ; Page loaded in: 0.023 seconds.