Skip to content

modules.decision.strategies.consecutive_true

Classes Diagram

Module Dependencies

Classes

ConsecutiveTrueStrategy

Require the last min_consecutive inference snapshots (oldest→newest in the
buffer) to each have at least one True (drone on any mic). That is three
consecutive “detection” frames in a row. If so, return the angle from the
latest snapshot (angles[-1]).

Constructor

ConsecutiveTrueStrategy(self, mic_infos: list[MicInfo], opening: float, min_consecutive: int = 3)

Members

_min_consecutive

Methods

decide(self, angles: Sequence[float], inferences: Sequence[Sequence[bool]]) → float | None