Skip to main content

pid_parameters_for_result

Function pid_parameters_for_result 

Source
pub fn pid_parameters_for_result(
    result: &TuneResultRow,
) -> Result<PidParameters>
Expand description

Converts a persisted result into the exact PID values that may be written to a controller.

This is the single validity gate shared by the CLI and HTTP write paths. A result must be explicitly valid and contain finite values for all three constants; malformed historical rows are rejected rather than being allowed to reach a live driver.