Skip to content

Commit 7b4483f

Browse files
committed
[maxswerve/swerveutils] Fix sign bug
1 parent 938bd42 commit 7b4483f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/maxswerve/tests/test_swerveutils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ def test_stepTowardsCircular1():
55
stepsize = 0.3455804605358387
66
target = 0.0 # stepping towards zero direction
77
result = swerveutils.stepTowardsCircular(current=current, stepsize=stepsize, target=target)
8-
assert abs(result) < abs(current), f"swerveutils: why stepping from {current} to {target} results in {result}?"
8+
assert abs(result) < abs(current) # stepping towards zero angle should result in smaller absolute value

0 commit comments

Comments
 (0)