LitePlacer-rmod Updates

thereza
Posts: 138
Joined: Fri Feb 13, 2015 11:49 pm

Re: LitePlacer-rmod Updates

Post 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.
thereza
Posts: 138
Joined: Fri Feb 13, 2015 11:49 pm

Re: LitePlacer-rmod Updates

Post by thereza »

thereza
Posts: 138
Joined: Fri Feb 13, 2015 11:49 pm

Re: LitePlacer-rmod Updates

Post 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
thereza
Posts: 138
Joined: Fri Feb 13, 2015 11:49 pm

Re: LitePlacer-rmod Updates

Post 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.
thereza
Posts: 138
Joined: Fri Feb 13, 2015 11:49 pm

Re: LitePlacer-rmod Updates

Post 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.
mrandt
Posts: 407
Joined: Mon Apr 27, 2015 10:56 am
Location: Stuttgart, Germany

Re: LitePlacer-rmod Updates

Post by mrandt »

Thanks. I upraded to SVN revision 24 and will test.
mrandt
Posts: 407
Joined: Mon Apr 27, 2015 10:56 am
Location: Stuttgart, Germany

Re: LitePlacer-rmod Updates

Post 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
thereza
Posts: 138
Joined: Fri Feb 13, 2015 11:49 pm

Re: LitePlacer-rmod Updates

Post 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
mrandt
Posts: 407
Joined: Mon Apr 27, 2015 10:56 am
Location: Stuttgart, Germany

Re: LitePlacer-rmod Updates

Post 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
mrandt
Posts: 407
Joined: Mon Apr 27, 2015 10:56 am
Location: Stuttgart, Germany

Re: LitePlacer-rmod Updates

Post 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
Post Reply