Skip to main content

adaptive_gains

Function adaptive_gains 

Source
pub fn adaptive_gains(
    kp: f64,
    ki: f64,
    kd: f64,
    adaptation: f64,
) -> (f64, f64, f64)
Expand description

Scale a PID gain triple by a scalar adaptation factor — the simplest gain-scheduling step (retune as the operating regime changes). Returns (kp, ki, kd).