Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

Commit

Permalink
Forgot this file.
Browse files Browse the repository at this point in the history
  • Loading branch information
Krypton Cougars committed Jan 30, 2020
1 parent 83a44fc commit f9a4026
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions robot.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

#from statemachines.drivetrain.driverobotmachine import DriveRobotMachine

from components.potentiometer import Potentiometer

from components.drivebase.robotdrive import RobotDrive
from components.drivebase.drivevelocities import TankDrive

Expand Down Expand Up @@ -35,6 +37,8 @@ class KryptonBot(magicbot.MagicRobot):

falcon: FalconTest

potent: Potentiometer

#movemachine: MoveStateMachine

def createObjects(self):
Expand Down Expand Up @@ -69,10 +73,16 @@ def createObjects(self):
self.colorSensor = ColorSensorV3(wpilib.I2C.Port.kOnboard)
self.colorwheelMotor = CANSparkMax(ports.ColorWheelPorts.motorID, MotorType.kBrushless)# WPI_TalonSRX(ports.ColorWheelPorts.motorID)
self.colorWheelEncoder = self.colorwheelMotor.getEncoder()
self.colorWheelController = self.colorWheelMotor.getPIDController()
self.colorWheelController = self.colorwheelMotor.getPIDController()

self.velocityCalculator = TankDrive()

self.potentiometer = wpilib.AnalogPotentiometer(0)
self.potentiometerTalon = WPI_TalonSRX(2)

self.potentiometerForward = wpilib.DigitalInput(0)
self.potentiometerReverse = wpilib.DigitalInput(1)

self.tolerance = 20

self.build = BuildLayout(0, 1, self.functionsD, self.functionsO) # USE
Expand All @@ -86,7 +96,7 @@ def teleopInit(self):

#self.movemachine.moveMachineStart(12)

self.falcon.run()
#self.falcon.run()
''' Starts at the beginning of teleop (initialize) '''

#self.movemachine.moveMachineStart(36)
Expand Down

0 comments on commit f9a4026

Please sign in to comment.