Expand description
The plausibility ranges the printer port declares for what a printer reports.
A numeric field of a snapshot this port answers is typed
Reported<f64>, carrying whether the value
lies outside the range declared here for it. These are validity ranges on
what a printer can plausibly report, and they are not the operator’s safety
envelope. A reading outside one of them says the source reported something
implausible — a disconnected thermistor, a firmware that answers in another
unit. What an actor is allowed to ask for is
the supervision domain’s SafetyEnvelope, which is server
configuration and is narrower by orders of magnitude; nothing reads these
ranges as a bound on an action, and the two are never intersected, compared
or substituted for one another.
RANGED_FIELDS is the one table of which field carries which range, read
by the tests that drive every ranged field at its boundary.
Structs§
- Ranged
Field - One field this port declares a plausibility range for.
Constants§
- COMPLETION_
RANGE - The plausibility range of
JobSnapshot::completion, as a fraction. - FAN_
PERCENT_ RANGE - The plausibility range of
PrinterSnapshot::fan_percent, in percent. - FEEDRATE_
FACTOR_ RANGE - The plausibility range of
PrinterSnapshot::feedrate_factor. - FLOWRATE_
FACTOR_ RANGE - The plausibility range of
PrinterSnapshot::flowrate_factor. - HEATER_
ACTUAL_ C_ RANGE - The plausibility range of
HeaterSnapshot::actual_c, in degrees Celsius. - HEATER_
OFFSET_ C_ RANGE - The plausibility range of
HeaterSnapshot::offset_c, in degrees Celsius. - HEATER_
TARGET_ C_ RANGE - The plausibility range of
HeaterSnapshot::target_c, in degrees Celsius. - RANGED_
FIELDS - Every field this port types as
Reported<f64>, with its declared range.