Skip to content

Commit d7abb48

Browse files
iyshengm-lundberg
authored andcommitted
Keep pid call uniform with update function
1 parent 041dad6 commit d7abb48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/water_boiler/water_boiler.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def update(self, boiler_power, dt):
4343
current_time = time.time()
4444
dt = current_time - last_time
4545

46-
power = pid(water_temp)
46+
power = pid(water_temp, dt)
4747
water_temp = boiler.update(power, dt)
4848

4949
x += [current_time - start_time]

0 commit comments

Comments
 (0)