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+
18import wpilib
29
310kLEDBuffer = 60
Original file line number Diff line number Diff line change 11#!/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+ #
67
78import wpilib
89import wpilib .drive
910
1011
1112class 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+
1218 def robotInit (self ):
1319 """Robot initialization function"""
1420
Original file line number Diff line number Diff line change 11#!/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+ #
67
78import wpilib
89import wpilib .drive
910
1011
1112class 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+
1218 def robotInit (self ):
1319 """Robot initialization function"""
1420
Original file line number Diff line number Diff line change 33# Copyright (c) FIRST and other WPILib contributors.
44# Open Source Software; you can modify and/or share it under the terms of
55# the WPILib BSD license file in the root directory of this project.
6+ #
67
78import wpilib
89
Original file line number Diff line number Diff line change 1- #!usr/bin/env python3
2-
1+ #!/ usr/bin/env python3
2+ #
33# Copyright (c) FIRST and other WPILib contributors.
44# Open Source Software; you can modify and/or share it under the terms of
55# the WPILib BSD license file in the root directory of this project.
6+ #
67
78import wpilib
89import commands2
Original file line number Diff line number Diff line change 1- #!usr/bin/env python3
2-
1+ #!/ usr/bin/env python3
2+ #
33# Copyright (c) FIRST and other WPILib contributors.
44# Open Source Software; you can modify and/or share it under the terms of
55# the WPILib BSD license file in the root directory of this project.
6+ #
67
78import wpilib
89import commands2
Original file line number Diff line number Diff line change 11#!/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+ #
77
88import wpilib
99import wpilib .drive
1010
1111
1212class 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+
1319 def robotInit (self ):
1420 """Robot initialization function"""
1521
Original file line number Diff line number Diff line change 11#!/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+ #
57
68import wpilib
79
810
911class MyRobot (wpilib .TimedRobot ):
12+ """
13+ This is a good foundation to build your robot code on
14+ """
15+
1016 def robotInit (self ):
1117 wpilib .CameraServer .launch ("vision.py:main" )
1218
Original file line number Diff line number Diff line change 11#!/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+ #
57
68import wpilib
79
810
911class MyRobot (wpilib .TimedRobot ):
12+ """
13+ This is a good foundation to build your robot code on
14+ """
15+
1016 def robotInit (self ):
1117 wpilib .CameraServer .launch ()
1218
Original file line number Diff line number Diff line change 11#!/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+ #
27
38import wpilib
49import wpilib .drive
You can’t perform that action at this time.
0 commit comments