-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathrobot.py
34 lines (27 loc) · 863 Bytes
/
robot.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/env python3
#
# Copyright (c) FIRST and other WPILib contributors.
# Open Source Software; you can modify and/or share it under the terms of
# the WPILib BSD license file in the root directory of this project.
#
import math
import wpilib
import wpilib.drive
import phoenix5
import constants
import math
import limelight
import commands2
import typing
from robotcontainer import RobotContainer
class MyRobot(commands2.TimedCommandRobot):
"""
This is a demo program showing the use of the DifferentialDrive class.
Runs the motors with arcade steering.
"""
autonomousCommand: typing.Optional[commands2.Command] = None
def robotInit(self):
"""Robot initialization function"""
self.container = RobotContainer()
def teleopPeriodic(self):
commands2.CommandScheduler.getInstance().run()