Skip to main content

evaluate_pid_threshold

Function evaluate_pid_threshold 

Source
pub fn evaluate_pid_threshold(
    spec: Option<&VehicleSpec>,
    pid: Pid,
    value: f64,
) -> Option<ThresholdResult>
Expand description

Evaluate a standard PID reading against the matched spec’s thresholds.

Returns None if no threshold is defined for this PID, or if no spec is matched.