File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 1+ #!/usr/bin/env python3
12#
23# Copyright (c) FIRST and other WPILib contributors.
34# Open Source Software; you can modify and/or share it under the terms of
67
78import swerveutils
89
10+
911def test_stepTowardsCircular1 ():
1012 current = 0.6408134451373411
1113 stepsize = 0.3455804605358387
1214 target = 0.0 # stepping towards zero direction
13- result = swerveutils .stepTowardsCircular (current = current , stepsize = stepsize , target = target )
14- assert abs (result ) < abs (current ) # stepping towards zero angle should result in smaller absolute value
15+ result = swerveutils .stepTowardsCircular (
16+ current = current , stepsize = stepsize , target = target
17+ )
18+ # stepping towards zero angle should result in smaller absolute value
19+ assert abs (result ) < abs (current )
You can’t perform that action at this time.
0 commit comments