File tree Expand file tree Collapse file tree 1 file changed +3
-17
lines changed Expand file tree Collapse file tree 1 file changed +3
-17
lines changed Original file line number Diff line number Diff line change 1
- import hal
2
-
3
- from wpilib .timedrobot import TimedRobot
4
- from wpilib .command .scheduler import Scheduler
5
- from wpilib .livewindow import LiveWindow
1
+ from wpilib import TimedRobot
2
+ from wpilib .command import Scheduler
6
3
7
4
8
5
class CommandBasedRobot (TimedRobot ):
@@ -17,7 +14,6 @@ def startCompetition(self):
17
14
self .scheduler = Scheduler .getInstance ()
18
15
super ().startCompetition ()
19
16
20
-
21
17
def commandPeriodic (self ):
22
18
'''
23
19
Run the scheduler regularly. If an error occurs during a competition,
@@ -35,20 +31,10 @@ def commandPeriodic(self):
35
31
36
32
self .handleCrash (error )
37
33
38
-
39
34
autonomousPeriodic = commandPeriodic
40
35
teleopPeriodic = commandPeriodic
41
36
disabledPeriodic = commandPeriodic
42
-
43
-
44
- def testPeriodic (self ):
45
- '''
46
- Test mode will not run normal commands, but motors can be controlled
47
- and sensors viewed with the SmartDashboard.
48
- '''
49
-
50
- LiveWindow .run ()
51
-
37
+ # testPeriodic deliberately omitted
52
38
53
39
def handleCrash (self , error ):
54
40
'''
You can’t perform that action at this time.
0 commit comments