Clippy fixes

This commit is contained in:
Connor Johnstone
2024-07-23 11:20:20 -04:00
parent 0cfd4f1f5d
commit e27ef0a07c
6 changed files with 24 additions and 19 deletions

View File

@@ -52,17 +52,20 @@ impl PIController {
initial_h: f64,
) -> Self {
Self {
alpha: alpha,
beta: beta,
alpha,
beta,
factor_c1: 1.0 / min_factor,
factor_c2: 1.0 / max_factor,
factor_old: 1.0e-4,
h_max: h_max.abs(),
safety_factor: safety_factor,
safety_factor,
old_h: initial_h,
}
}
pub fn default() -> Self {
}
impl Default for PIController {
fn default() -> Self {
Self::new(0.17, 0.04, 10.0, 0.2, 100000.0, 0.9, 1e-4)
}
}