Expand description
Each print’s first-layer alignment verdict: whether the camera calibration’s projection lands on that print’s printed first layer.
A projection can be wrong with the camera unmoved, so each print verifies
it once. The first time the printer watch finds a print’s file position
past the end of its first object layer, one frame is fetched from the
camera and verify_first_layer_alignment rules on it; a fetch that gives
no good frame is tried again at the next read. The verdict is written to
<state_dir>/alignment/<print id>.json, so it stands through a restart
while the print is open, and is deleted once the print closes. A print is
checked once, and a failed print stays failed.
Which check draws the toolpath on its image reads the verdict through
Alignments::print_alignment and draws only for a print that Passed.
Beside each verdict is kept the frame the print’s last check was given,
which the next check’s image shows as the previous one
(Alignments::previous_check): written under
<state_dir>/previous-check/<print id>.json, standing through a restart
while the print is open, and swept with the verdict once it closes.
And beside that, the frames of the print’s recent checks with the height
the plan had reached at each (Alignments::checked_frames): written
under <state_dir>/checked-frames/<print id>.json, kept and swept the same
way, so that a check can measure whether the parts grew since one far
enough below it (Alignments::growth_reference).
Structs§
- Alignments
- The alignment verdicts of every print, what decides them, the frame each print’s last check was given, and its recent checks’ frames and heights.
- Checked
Frame - One check’s frame and the height the plan had reached as it was captured.
- Previous
Check - The frame one print’s last check was given, and when it was captured.
Enums§
- Alignment
Failure - Why a print’s alignment failed.
- Print
Alignment - One print’s first-layer alignment verdict, as it is kept under the state directory — which the real-print suite’s record reads.
Functions§
- checked_
frames_ dir - The directory each print’s recent checks’ frames and heights are kept in, under a state directory.
- previous_
check_ dir - The directory each print’s last check’s frame is named in, under a state directory.
- verdict_
dir - The directory verdicts are kept in, under a state directory.