[cmd3] Add rising and falling edge trigger factories (#8366)

`Trigger.getAsBoolean()` behavior has been changed from passing through
the underlying boolean supplier to returning the latest cached signal as
determined by the most recent call to `poll()`. This allows rising and
falling edge triggers to have a consistent return value over an entire
polling cycle, rather than only being high for the _first_ check in a
cycle.

Closes #8309
This commit is contained in:
Sam Carlberg
2026-05-07 19:32:34 -04:00
committed by GitHub
parent 5964443038
commit 62e0bc515c
6 changed files with 546 additions and 28 deletions

View File

@@ -176,7 +176,7 @@ module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN"
</module>
<module name="LambdaParameterName">
<property name="format"
value="^(_?[a-zA-Z]|_?[a-z][a-zA-Z0-9]+)$" />
value="^(_|_?[a-zA-Z]|_?[a-z][a-zA-Z0-9]+)$" />
<message key="name.invalidPattern"
value="Lambda parameter name ''{0}'' must match pattern ''{1}''." />
</module>