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
1
2
#
2
3
# Copyright (c) FIRST and other WPILib contributors.
3
4
# Open Source Software; you can modify and/or share it under the terms of
6
7
7
8
import swerveutils
8
9
10
+
9
11
def test_stepTowardsCircular1 ():
10
12
current = 0.6408134451373411
11
13
stepsize = 0.3455804605358387
12
14
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