We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d5813e commit f086099Copy full SHA for f086099
components/intake.py
@@ -175,7 +175,11 @@ def correct_and_predict(self) -> None:
175
176
self.loop.predict(0.020)
177
178
- self.innovation = corrected - predicted
+ # Use in-place subtraction to avoid creating a new array.
179
+ # `corrected` is no longer used after this point.
180
+ innovation = corrected
181
+ innovation -= predicted
182
+ self.innovation = innovation
183
184
# constrain ourselves if we are going to do damage
185
if (
0 commit comments