Expand description
The vel_pid module provides a velocity form PID controller.
VelPid is a structure that implements the PidController trait, which provides methods for creating a new controller and updating the controller.
§Examples
use advanced_pid::{prelude::*, PidConfig, VelPid};
let config = PidConfig::new(1.0, 0.3, 0.1).with_limits(-1.0, 1.0);
let mut pid = VelPid::new(config);
let target = 1.0;
let actual = 0.0;
let dt = 1.0;
println!("{}", pid.update(target, actual, dt));Structs§
- VelPid
VelPidis a structure that implements thePidControllertrait.