/* * Gauge Tuning Screen Module * * Hand-coded LVGL screen for the Patrol gauge tunables (link_config_t): * tach pulses/rev + trim, coolant PWM law, alert thresholds, enables, and a * bench override (force an rpm / a duty) so the needles can be calibrated * from the touchscreen while watching the cluster. * * Lives in src/ (never touched by SquareLine exports), like DrivelineScreen. * Reached by swiping RIGHT on the Driveline screen; the Driveline button (top * right) goes back. No swipe gesture on this screen (it would fight the sliders). * Every change goes through Tunables, so it is saved to NVS (overrides * excepted) and pushed to Controller B in the next CONFIG frame. */ #pragma once #include #include namespace TuningScreen { /** * @brief Build the screen (idempotent), refresh it from Tunables, and load it. * @note Caller must hold the LVGL lock. */ void show(); /** * @brief Refresh displayed values if the tunables changed elsewhere (console). * Cheap no-op unless the screen exists and is on display. Call from * loop(); takes its own lock. */ void tick(); } // namespace TuningScreen