fix l71 formatting
This commit is contained in:
parent
a632fc3a8e
commit
eb5b747050
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue