Expand description
CLI adapter for the shared tune runtime.
Enums§
- PidWrite
Outcome - The result of
write_pid_values– deliberately simpler thanWriteBackOutcomebelow, which layers CLI-only concerns (aSkippedvariant covering unconfigured tags, no recorded results, or an interactive skip) on top of this.write_pid_valuesonly ever runs once a specific, available target has already been chosen, so there is nothing left to “skip” by the time it’s called. Named distinctly frombhtune_driver::WriteOutcome(that one describes a single raw tag write’s own outcome; this one describes the full pre-read/write/verify/rollback/audit sequence across all three PID constants). - Tune
Outcome
Functions§
- write_
pid_ values - Pre-reads the existing Proportional/Integral/Derivative values, writes and verifies
target(Proportional then Integral then Derivative, stopping at the first failure), rolls back to the pre-read values on partial failure (only forkind =WriteKind::Write-- [WriteKind::Revert] never does, so a revert can't chase its own failure with a nested rollback; see [WriteKind]'s own doc comment), and records exactly one [TuneWriteRow`] audit row for the attempt, success or not.