Skip to content

Commit

Permalink
Small changes to try to improve exposure time accuracy for high inten…
Browse files Browse the repository at this point in the history
…sity prints requiring <100ms exposure times
  • Loading branch information
jmkao committed Aug 7, 2016
1 parent c836dbb commit 8671fc1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,14 +174,14 @@ public JobStatus performPostSlice(DataAid aid) throws ExecutionException, Interr
//Sleep for the amount of time that we are exposing the resin.
Thread.sleep(aid.printJob.getExposureTime());

//Blank the screen
aid.printer.showBlankImage();

if (aid.slicingProfile.getgCodeShutter() != null && aid.slicingProfile.getgCodeShutter().trim().length() > 0) {
aid.printer.setShutterOpen(false);
aid.printer.getGCodeControl().executeGCodeWithTemplating(aid.printJob, aid.slicingProfile.getgCodeShutter());
}

//Blank the screen in the case that our printer doesn't have a shutter
aid.printer.showBlankImage();

logger.info("ExposureTime:{}", ()->Log4jTimer.completeTimer(EXPOSURE_TIMER));

//Perform two actions at once here:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ public JobStatus processFile(PrintJob printJob) throws Exception {

dataAid.printer.showImage(imageData.getImage());

status = performPostSlice(dataAid);

if (oldImage != null) {
oldImage.getImage().flush();
}
Expand All @@ -126,8 +128,7 @@ public JobStatus processFile(PrintJob printJob) throws Exception {
} else {
slicePending = false;
}

status = performPostSlice(dataAid);

if (status != null) {
return status;
}
Expand Down

0 comments on commit 8671fc1

Please sign in to comment.