defragster
Senior Member+
Cloned the @mjs github for camera - not sure where the new code is evolving - have not read today's posts yet ...
All seems well!
>> Continuous seems FASTER? And it starts with "C"
Running the PDE started a few times with bogus image shown.
That runs on serialEvent() - wondered if that is triggering faster than all packets are buffered? Transfer is 300 packets of 512 bytes?
> That routine enters on USB start - and does a while (bb.hasRemaining()) without any check on completed image transfer.
Added a delay(3):
Restarted a couple times and not seeing any garbage images with that?
It may be this fancy new i7 running a tad faster? Code triggers before transfer is complete?
Correction - restarted and SerMon showing this and the image from PDE is split Left to Right, But this is not the GARBAGE images I was seeing before:
Versus:
All seems well!
>> Continuous seems FASTER? And it starts with "C"
Running the PDE started a few times with bogus image shown.
That runs on serialEvent() - wondered if that is triggering faster than all packets are buffered? Transfer is 300 packets of 512 bytes?
> That routine enters on USB start - and does a while (bb.hasRemaining()) without any check on completed image transfer.
Added a delay(3):
Code:
void serialEvent(Serial myPort) {
[B] delay(3);
[/B]// read the saw bytes in
myPort.readBytes(frameBuffer);
//...
Restarted a couple times and not seeing any garbage images with that?
It may be this fancy new i7 running a tad faster? Code triggers before transfer is complete?
Correction - restarted and SerMon showing this and the image from PDE is split Left to Right, But this is not the GARBAGE images I was seeing before:
Code:
Image Sent!
Calibrating Auto Exposure...
[B]not converged[/B]
Code:
Image Sent!
Calibrating Auto Exposure...
converged!