Skip to content

Commit

Permalink
Fix clock reset. (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
saarela authored Dec 20, 2023
1 parent 3da839a commit 386b77d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion motulator/control/_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ def update(self, T_s):
Sampling period (s).
"""
self.t += T_s if self.t < self.t_reset else 0
self.t = (self.t + T_s) % self.t_reset


# %%
Expand Down

0 comments on commit 386b77d

Please sign in to comment.