mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
`Trigger.multiPress(N, T)` creates a trigger that fires when there are at least N rising edges within the last T timespan, eg `multiPress(3, Seconds.of(1.25))` for 3 rising edges within the last 1.25 seconds. `Trigger.retryWhileTrue` and `retryWhileFalse` will continuously attempt to schedule a command while the binding condition is met. This is similar to `whileTrue` and `whileFalse`, but will reschedule the command if it ends or is canceled while the binding condition is still met, rather than requiring a new rising edge to reschedule it.