-
Notifications
You must be signed in to change notification settings - Fork 2
/
robot_systems.py
39 lines (29 loc) · 929 Bytes
/
robot_systems.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
35
36
37
38
39
from ctre import SensorTimeBase
import constants
from sensors import limit_switch
import subsystem
import sensors
import wpilib
import config
from sensors.color_sensors import ColorSensors
from sensors.field_odometry import FieldOdometry
from sensors.rev_digit import RevDigit
from sensors.intake_cameras import IntakeCameras
from sensors.limelight import Limelight
class Robot:
drivetrain = subsystem.Drivetrain()
intake = subsystem.Intake()
index = subsystem.Index()
elevator = subsystem.Elevator()
shooter = subsystem.Shooter()
limelight: Limelight
odometry: FieldOdometry
rev_digit: RevDigit
intake_cameras: IntakeCameras
class Pneumatics:
compressor = wpilib.Compressor(1, wpilib.PneumaticsModuleType.REVPH)
@classmethod
def get_compressor(cls):
return cls.compressor.enabled(), cls.compressor.getCurrent()
class Sensors:
color_sensors: ColorSensors