File tree Expand file tree Collapse file tree 38 files changed +271
-95
lines changed
arcade-drive-xbox-controller
cscore-intermediate-vision
tank-drive-xbox-controller Expand file tree Collapse file tree 38 files changed +271
-95
lines changed Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env python3
2
+ #
3
+ # Copyright (c) FIRST and other WPILib contributors.
4
+ # Open Source Software; you can modify and/or share it under the terms of
5
+ # the WPILib BSD license file in the root directory of this project.
6
+ #
7
+
1
8
import wpilib
2
9
3
10
kLEDBuffer = 60
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python3
2
- """
3
- This is a demo program showing the use of the DifferentialDrive class.
4
- Runs the motors with split arcade steering and an Xbox controller.
5
- """
2
+ #
3
+ # Copyright (c) FIRST and other WPILib contributors.
4
+ # Open Source Software; you can modify and/or share it under the terms of
5
+ # the WPILib BSD license file in the root directory of this project.
6
+ #
6
7
7
8
import wpilib
8
9
import wpilib .drive
9
10
10
11
11
12
class MyRobot (wpilib .TimedRobot ):
13
+ """
14
+ This is a demo program showing the use of the DifferentialDrive class.
15
+ Runs the motors with split arcade steering and an Xbox controller.
16
+ """
17
+
12
18
def robotInit (self ):
13
19
"""Robot initialization function"""
14
20
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python3
2
- """
3
- This is a demo program showing the use of the DifferentialDrive class.
4
- Runs the motors with arcade steering.
5
- """
2
+ #
3
+ # Copyright (c) FIRST and other WPILib contributors.
4
+ # Open Source Software; you can modify and/or share it under the terms of
5
+ # the WPILib BSD license file in the root directory of this project.
6
+ #
6
7
7
8
import wpilib
8
9
import wpilib .drive
9
10
10
11
11
12
class MyRobot (wpilib .TimedRobot ):
13
+ """
14
+ This is a demo program showing the use of the DifferentialDrive class.
15
+ Runs the motors with arcade steering.
16
+ """
17
+
12
18
def robotInit (self ):
13
19
"""Robot initialization function"""
14
20
Original file line number Diff line number Diff line change 3
3
# Copyright (c) FIRST and other WPILib contributors.
4
4
# Open Source Software; you can modify and/or share it under the terms of
5
5
# the WPILib BSD license file in the root directory of this project.
6
+ #
6
7
7
8
import wpilib
8
9
Original file line number Diff line number Diff line change 1
- #!usr/bin/env python3
2
-
1
+ #!/ usr/bin/env python3
2
+ #
3
3
# Copyright (c) FIRST and other WPILib contributors.
4
4
# Open Source Software; you can modify and/or share it under the terms of
5
5
# the WPILib BSD license file in the root directory of this project.
6
+ #
6
7
7
8
import wpilib
8
9
import commands2
Original file line number Diff line number Diff line change 1
- #!usr/bin/env python3
2
-
1
+ #!/ usr/bin/env python3
2
+ #
3
3
# Copyright (c) FIRST and other WPILib contributors.
4
4
# Open Source Software; you can modify and/or share it under the terms of
5
5
# the WPILib BSD license file in the root directory of this project.
6
+ #
6
7
7
8
import wpilib
8
9
import commands2
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python3
2
- """
3
- This is a sample program showing how to retrieve information from the Power
4
- Distribution Panel via CAN. The information will be displayed under variables
5
- through the SmartDashboard .
6
- """
2
+ #
3
+ # Copyright (c) FIRST and other WPILib contributors.
4
+ # Open Source Software; you can modify and/or share it under the terms of
5
+ # the WPILib BSD license file in the root directory of this project .
6
+ #
7
7
8
8
import wpilib
9
9
import wpilib .drive
10
10
11
11
12
12
class MyRobot (wpilib .TimedRobot ):
13
+ """
14
+ This is a sample program showing how to retrieve information from the Power
15
+ Distribution Panel via CAN. The information will be displayed under variables
16
+ through the SmartDashboard.
17
+ """
18
+
13
19
def robotInit (self ):
14
20
"""Robot initialization function"""
15
21
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python3
2
- """
3
- This is a good foundation to build your robot code on
4
- """
2
+ #
3
+ # Copyright (c) FIRST and other WPILib contributors.
4
+ # Open Source Software; you can modify and/or share it under the terms of
5
+ # the WPILib BSD license file in the root directory of this project.
6
+ #
5
7
6
8
import wpilib
7
9
8
10
9
11
class MyRobot (wpilib .TimedRobot ):
12
+ """
13
+ This is a good foundation to build your robot code on
14
+ """
15
+
10
16
def robotInit (self ):
11
17
wpilib .CameraServer .launch ("vision.py:main" )
12
18
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python3
2
- """
3
- This is a good foundation to build your robot code on
4
- """
2
+ #
3
+ # Copyright (c) FIRST and other WPILib contributors.
4
+ # Open Source Software; you can modify and/or share it under the terms of
5
+ # the WPILib BSD license file in the root directory of this project.
6
+ #
5
7
6
8
import wpilib
7
9
8
10
9
11
class MyRobot (wpilib .TimedRobot ):
12
+ """
13
+ This is a good foundation to build your robot code on
14
+ """
15
+
10
16
def robotInit (self ):
11
17
wpilib .CameraServer .launch ()
12
18
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python3
2
+ #
3
+ # Copyright (c) FIRST and other WPILib contributors.
4
+ # Open Source Software; you can modify and/or share it under the terms of
5
+ # the WPILib BSD license file in the root directory of this project.
6
+ #
2
7
3
8
import wpilib
4
9
import wpilib .drive
You can’t perform that action at this time.
0 commit comments