File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,10 @@ def robotInit(self):
30
30
# CANError.kOk
31
31
# CANError.kError
32
32
# CANError.kTimeout
33
- if self .motor .setIdleMode (rev .CANSparkMax .IdleMode .kCoast ) != rev .REVLibError .kOk :
33
+ if (
34
+ self .motor .setIdleMode (rev .CANSparkMax .IdleMode .kCoast )
35
+ != rev .REVLibError .kOk
36
+ ):
34
37
wpilib .SmartDashboard .putString ("Idle Mode" , "Error" )
35
38
36
39
# Similarly, parameters will have a get() method which allows you to
Original file line number Diff line number Diff line change @@ -20,9 +20,9 @@ def test_current_limit():
20
20
21
21
sm .setSecondaryCurrentLimit (50 )
22
22
23
- # assert hal_data["CAN"]["sparkmax-1"]["currentChop"] == 50.0
24
- # assert isinstance(hal_data["CAN"]["sparkmax-1"]["currentChop"], float)
25
- # assert hal_data["CAN"]["sparkmax-1"]["currentChopCycles"] == 0
23
+ # assert hal_data["CAN"]["sparkmax-1"]["currentChop"] == 50.0
24
+ # assert isinstance(hal_data["CAN"]["sparkmax-1"]["currentChop"], float)
25
+ # assert hal_data["CAN"]["sparkmax-1"]["currentChopCycles"] == 0
26
26
27
27
sm .setSecondaryCurrentLimit (52.5 , 5 )
28
28
You can’t perform that action at this time.
0 commit comments