mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-09-03 22:53:44 +08:00
485ac32250
* Longitudinal: Distance button hold to toggle Chill/Experimental Mode * unused * fix * no need * Refactor: Introduce ButtonHoldTracker to manage button hold durations (#593) Add ButtonHoldTracker for button hold logic and tests Introduce a new `ButtonHoldTracker` class to manage button hold durations, replacing manual timer handling in `ExperimentalSwitcher`. Updated `ExperimentalSwitcher` to leverage this implementation for cleaner and more modular code. Added comprehensive unit tests for both `ButtonHoldTracker` and `ExperimentalSwitcher` to ensure functionality and edge case coverage. * Revert "Refactor: Introduce ButtonHoldTracker to manage button hold durations (#593)" This reverts commit 7ee7e73ce708f9b52aabed23e398ccf94b1834cf. * less in selfdrived * pass carparams into child * tests for cruisehelper * rename these bad bois (happy now @devtekve? xD) * Apply suggestions from code review Co-authored-by: DevTekVE <devtekve@gmail.com> --------- Co-authored-by: DevTekVE <devtekve@gmail.com>