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.
Structs§
- Alignments
- The alignment verdicts of every print, what decides them, and the frame each print’s last check was given.
- 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§
- 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.