Page 4 of 16

Re: LitePlacer-rmod Updates

Posted: Tue Jul 07, 2015 8:04 pm
by thereza
been having issues with the camera auto-adjusting it's exposure which makes some of the filtering fail. So I added 'camera Exposure' as a filter type so you can specify the exposure and not worry about it changing automatically.

Re: LitePlacer-rmod Updates

Posted: Fri Jul 10, 2015 11:03 pm
by thereza

Re: LitePlacer-rmod Updates

Posted: Thu Jul 16, 2015 10:50 pm
by thereza
Added a bunch of stuff. lost track of them all.

adding support for automatically taking photos of components an using them to detect which components are on a tape - in case one part is missing out of a number of them. will also allow you to create a total of the parts available automatically. problem is setting the template matching threshold might have to be done on a case by case basis.

lots of cleanup and stuff

also added a pickup & place function so if you want a particular part it grabs it and puts it in a dedicated location ("Component Placement") so you can grab it.

https://www.dropbox.com/s/2v8p7n8w2qrj2 ... 3.zip?dl=0

Reza

Re: LitePlacer-rmod Updates

Posted: Sat Jul 18, 2015 8:43 pm
by thereza
added support for reordering lists via drag and drop and removed 'up' and 'down' buttons. not elegant as I couldn't find a way to reorder a list without knowing it's type so i just try the 4 types till one works. checked into svn.

Re: LitePlacer-rmod Updates

Posted: Sun Jul 19, 2015 9:04 am
by thereza
added a button to toggle the rotation direction of the A axis. My setup differs from others and it should be made user configurable

Removed a number of unused classes that were just used as an JSON intermediary from the cnc code.

Re: LitePlacer-rmod Updates

Posted: Sun Jul 19, 2015 2:26 pm
by mrandt
Thanks. I upraded to SVN revision 24 and will test.

Re: LitePlacer-rmod Updates

Posted: Sun Jul 19, 2015 3:42 pm
by mrandt
Hi Reza,

where is that button? I could not find it during quick testing. Expected it in Hardware settings, A axis - maybe I was to blind to see it.

Also put my findings into issue on GitHub. Have not had time to check the code yet.

Cheers
Malte

Re: LitePlacer-rmod Updates

Posted: Sun Jul 19, 2015 7:47 pm
by thereza
Yeah, sorry, just checked it in this morning.

Also migrating more of the UI to databindings so as to keep the form classes cleaner (did this for cameraView)

JuKu -

Does this look right (for JSON parsing) (o["sr"] is {sr: and o["r"]]"sr"]= {r:{sr:

Code: Select all

            // STATUS Update
            if (o["sr"] != null || o["r"]["sr"] != null) {
                var x = (o["sr"] != null) ? o["sr"] : o["r"]["sr"];
                if (x["posx"] != null) CNC.setCurrX((double)x["posx"]);
                if (x["posy"] != null) CNC.setCurrY((double)x["posy"]);
                if (x["posz"] != null) CNC.setCurrZ((double)x["posz"]);
                if (x["posa"] != null) CNC.setCurrA((double)x["posa"]);
                Global.Instance.mainForm.UpdatePositionDisplay();
                if ((o["r"]["sr"] != null) || (o["sr"]["stat"] != null && (int)(o["sr"]["stat"]) == 3)) 
                    _readyEvent.Set();
                return;
            }
and rather than using your deserializer, I just do this (where r is {r:...)

Code: Select all

                foreach (var token in r.Children()) {
                    if (token is JProperty) {
                        var prop = (JProperty)token;
                        MainForm.ValueUpdater(prop.Name, (string)prop.Value);
                    }
                }
will test later

Re: LitePlacer-rmod Updates

Posted: Mon Jul 20, 2015 12:23 pm
by mrandt
Thanks.

I see that checkbox now, but general TinyG communication seems to be broken in latest release 25.

See details here:
https://github.com/jkuusama/LitePlacer-ver2/issues/33

Re: LitePlacer-rmod Updates

Posted: Mon Jul 20, 2015 4:48 pm
by mrandt
SVN Release 26 fixed TinyG comm error and I could test "reverse rotation" checkbox.

Works for me - great stuff :-)

See details here:
https://github.com/jkuusama/LitePlacer-ver2/issues/19