Skip to main content

Module ranges

Module ranges 

Source
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§

RangedField
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.