Skip to content

v1.5.0 — pneumatics, button toggle, joystick curve

Choose a tag to compare

@AkshobyaRaoSWE AkshobyaRaoSWE released this 09 Jul 14:13

Added

  • clockwork::Pneumatics — wraps an ADI solenoid piston (clamp, wings, tilt) with extend(), retract(), set(), toggle(), and a remembered extended() state.
  • clockwork::Toggle — latches a boolean on the released-to-pressed edge of a button, so one press toggles once. Pairs with Pneumatics for one-button clamps and speed modes.
  • clockwork::joystickCurve(input, curve, deadband) — exponential joystick shaping with a deadband, for fine low-speed driver control that still hits full power at the ends.
  • Host tests now cover Toggle and joystickCurve. 29 checks, all green (make test).

Changed

  • Rewrote the header comments across the whole library in a plainer, more human voice. No API or behavior change.

Install

pros c add-depot clockwork https://raw.githubusercontent.com/AkshobyaRaoSWE/clockwork-lib/main/depot.json
pros c apply clockwork

Docs: https://akshobyaraoswe.github.io/clockwork-lib/ · Full changelog: CHANGELOG.md