Skip to content

Commit 7ce3328

Browse files
committed
Standardize robot.py styling for copyright header
1 parent 411d9b0 commit 7ce3328

File tree

38 files changed

+271
-95
lines changed

38 files changed

+271
-95
lines changed

addressableled/robot.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
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+
18
import wpilib
29

310
kLEDBuffer = 60

arcade-drive-xbox-controller/robot.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
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

78
import wpilib
89
import wpilib.drive
910

1011

1112
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+
1218
def robotInit(self):
1319
"""Robot initialization function"""
1420

arcade-drive/robot.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
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

78
import wpilib
89
import wpilib.drive
910

1011

1112
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+
1218
def robotInit(self):
1319
"""Robot initialization function"""
1420

arm-simulation/robot.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
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

78
import wpilib
89

armbot/robot.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
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

78
import wpilib
89
import commands2

armbotoffboard/robot.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
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

78
import wpilib
89
import commands2

canpdp/robot.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
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

88
import wpilib
99
import wpilib.drive
1010

1111

1212
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+
1319
def robotInit(self):
1420
"""Robot initialization function"""
1521

cscore-intermediate-vision/robot.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
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

68
import wpilib
79

810

911
class 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

cscore-quick-vision/robot.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
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

68
import wpilib
79

810

911
class 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

differential-drive-bot/robot.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
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

38
import wpilib
49
import wpilib.drive

0 commit comments

Comments
 (0)