Skip to content

v1.4.0 — auton selector, slew limiter, host tests

Choose a tag to compare

@AkshobyaRaoSWE AkshobyaRaoSWE released this 08 Jul 23:41

Added

  • clockwork::AutonSelector — a controller-driven autonomous selector. Register routines by name, scroll them with the D-pad before the match, see the pick on the controller and brain screens, and run() the choice in autonomous(). Core PROS only (no liblvgl / LLEMU).
  • clockwork::SlewRateLimiter — ramps a value toward a target by a fixed step per call. Smooths driver throttle (no wheelies or brownouts) or eases a flywheel up to speed.
  • Host test suite — the pure-logic classes (PIDController, SlewRateLimiter) now have tests you run on your computer with make test or test/run.sh. No PROS install, no V5 brain. 15 checks, all green.

Docs

  • New sections on the docs website and in the README for the selector, the slew limiter, and testing.

Install

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

Full changelog: CHANGELOG.md