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

Drawing doesn't start #4

Open MarkJB opened 8 years ago

MarkJB commented 8 years ago

Occasionally when starting a plot, the drawing doesn't start.

I see the config output and the servo does its 'up - down - up' move and then it hangs.

I have to pkill the python processes to start again.

MarkJB commented 8 years ago

I haven't seen this happen for a while now.

Maybe it was environmental.

If I don't see it happening after a few more drawings i'll close the issue.

MarkJB commented 8 years ago

I take that back... seen this today on a vector.

brianinnes commented 8 years ago

What were the circumstances when it didn't draw?
Was the previous draw aborted? - trying to determine what may cause the freeze up

MarkJB commented 8 years ago

This was after stopping a previous run with 'pkill python'.

MarkJB commented 8 years ago

It would be good to get some logging into vPiP... I'm seeing this with a jpg now.

MarkJB commented 8 years ago

Ok, that was my own fault. The image I was trying to plot had been converted to an indexed image at one point and then back to RGB and the assigned RGB value was so low vPiP figured it was a blank image. A test render confirmed it. There was nothing to draw...

Logging is still a good idea though!