main: reset PID after parameter change

This commit is contained in:
Astro 2019-10-03 01:33:49 +02:00
parent c8d31c7b0d
commit 2010b4fe10

View File

@ -442,6 +442,7 @@ fn main() -> ! {
IntegralMax => IntegralMax =>
pid.update_parameters(|parameters| parameters.integral_max = value), pid.update_parameters(|parameters| parameters.integral_max = value),
} }
pid.reset();
let _ = writeln!(socket, "PID parameter updated"); let _ = writeln!(socket, "PID parameter updated");
} }
Command::SteinhartHart { channel, parameter, value } => { Command::SteinhartHart { channel, parameter, value } => {