I’ll be in Toronto pretty much all week. Talk is Thursday 24 Sept, 16:50, Production diagnostics for ROS. Tuesday BoF works for me, or just grab a slot here: calendar.
Quick pass through your cases, how automotive does it and where medkit is.
Votes instead of a time window.
Here automotive does the same thing, count up on failed, down on passed, timer only for checks that stay on, and an enable condition in front of both. Our medkit has the counter in the fault manager already. What’s missing is a detector that runs a check on a number with that window and that enable condition, and that’s #669: three window shapes, time, counter and ratio. Your 200 votes at 80 percent is the ratio one.
The gate that can’t fire.
Automotive knows a monitor can fail too, but it only tracks whether the monitor ran, not whether it could still fire. That bit I’m adding myself in the same issue, a second check that compares the gate’s statistic with its threshold and raises its own code when the largest value stays 39 times below the threshold for a whole run. Your spike replay is the on-demand version of it. medkit has operations on apps already, storing the result with the fault doesn’t exist yet, that’s a separate issue once the detectors are in.
STALE in a blackout and the sensor you never heard from.
Automotive doesn’t soften the level, it switches the check off while the enable condition is false and keeps a separate “test not completed” bit for a sensor that never reported. Enable condition is in #669. STALE per name is in #668, together with keeping your key-values in the freeze frame instead of throwing them away. The “never heard from” state comes later, it needs a declared list of expected sources.
See you in Toronto!