linting fix

This commit is contained in:
ZodiusInfuser 2022-04-21 21:22:35 +01:00
parent 6b3ba659a2
commit 98c57741b6
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ class PID:
def calculate(self, value, value_change=None):
error = self.target - value
self._error_sum += error * self._sample_rate
if value_change == None:
if value_change is None:
rate_error = (value - self._last_value) / self._sample_rate
else:
rate_error = value_change