Timmmm / robocut

Control vinyl cutters, including Craft Robo, Silhouette, Cameo and Portrait
http://robocut.org/
GNU General Public License v3.0
81 stars 27 forks source link

Fix registration marks support #12

Open FCare opened 2 months ago

FCare commented 2 months ago

This MR is mainly extracting regmarks information from the SVG, based on layer name. It also allows to open a SVG file with regmarks, printing layer and cutting layer. In that case, only cutting layer is sent to the plotter. It avoids generating multiple files. I also fixed so display issues regarding dpi and I modified the grid on main display. Finally, I fixed some error on USB protocol (flushing buffer before reading data mainly) and inverting some operations so that unknon commands are not failing the CC200 protocol. I used wireshark on windows to realign the init sequence.

I tested on my CC200 and it works perfectly.

Do not hesitate to contact me if you need video or infos.

Timmmm commented 2 months ago

This is amazing, thank you! I am going to test it and if it works for me I'll make a new release with this change. (May take me a little while though; I don't have too much free time - feel free to poke me if I haven't got around to it in a few weeks.)

FCare commented 2 months ago

For info, I found that when using a Svg without the cut layer, the playback of the cutting animation are misaligned. I need to find some time to fix this.