brianinnes / vPiP

A python library with accompanying Arduino code to drive a vertical plotter from a Raspberry Pi. This project is targeted to drive the driver board created by makeBournemouth, but will work with any system capable of running Python and connecting to an Arduino/Genuino to drive the stepper motors
https://github.com/brianinnes/vPiP/wiki
Apache License 2.0
16 stars 11 forks source link

Units should be in mm #10

Closed MarkJB closed 8 years ago

MarkJB commented 8 years ago

This is an Enhancement request. Might be irrelevant in light of the pending work, but raising it anyway as it is worth some consideration.

It is difficult to work in pixels when using multiple machines with different page sizes.

It would make life easier if units were in mm.

brianinnes commented 8 years ago

In the config just set the pixels value to the same as the paper width (in mm) then the measurements are in mm.

MarkJB commented 8 years ago

Does that not affect the 'resolution' of the pixels?

brianinnes commented 8 years ago

depends. If you always make the pixel size 1 mm square (pixel size in line with the paper size), then the number of pixels in each direction will change as paper size changes. If you leave the pixel size the same across all the different paper size, then each paper size will have a scaled pixel size, but there will be the same number of pixels across the page.

Current implementation allows either way of working, but some of my test apps assume a 5000 pixel width.