fix l71 formatting

This commit is contained in:
topquark12 2020-12-26 11:26:53 +08:00
parent a632fc3a8e
commit eb5b747050
1 changed files with 1 additions and 2 deletions

View File

@ -68,8 +68,7 @@ impl Controller {
// integral
if let Some(last_output_val) = self.last_output {
// anti integral windup
if last_output_val < self.parameters.output_max.into() && last_output_val > self.parameters.output_min.into()
{
if last_output_val < self.parameters.output_max.into() && last_output_val > self.parameters.output_min.into() {
self.integral += error * time_delta;
}
}