Skip to content

Commit

Permalink
fix(constants/MaxSteps): correct upper limit
Browse files Browse the repository at this point in the history
  • Loading branch information
m-laniakea committed Mar 21, 2020
1 parent 705d227 commit f52848a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions stspin/constants/constant.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
Final,
)


class Constant:
DirReverse: Final = 0
DirForward: Final = 1
Expand All @@ -12,7 +11,7 @@ class Constant:
ActSetMark: Final = (1 << 3)

MaxStepsPerSecond: Final[float] = 15625.0
MaxSteps: Final = int(2 ** 22)
MaxSteps: Final = int(2 ** 22) - 1

TickSeconds: Final[float] = 250 * (10 ** -9)
SpsToSpeed: Final[float] = TickSeconds / (2 ** -28)

0 comments on commit f52848a

Please sign in to comment.