2
0
mirror of https://github.com/team2059/Zaphod synced 2024-12-18 20:12:28 -05:00

Removed python folder from master

This commit is contained in:
Austen Adler 2014-04-08 17:15:31 -04:00
parent b72e5261cf
commit 19c4b2a45d
5 changed files with 0 additions and 45 deletions

View File

@ -1,6 +0,0 @@
try:
import wpilib
except ImportError:
from pyfrc import wpilib
class drive():
def _init_(self, rightBack, rightMid, rightFront, leftBack, leftMid, leftFront):

View File

@ -1,36 +0,0 @@
import sys
import drive
try:
import wpilib
except ImportError:
from pyfrc import wpilib
DriveStick = wpilib.Joystick(1)
ShootStick = wpilib.Joystick(2)
leftMotor = wpilib.Jaguar(1)
compressor = wpilib.Compressor(2,1)
def restartCode():
if stick.GetRawButton(2):
raise RuntimeError("restarting")
# Contains the Disabled, Auto, and Teleop functions
class Zaphod(wpilib.SimpleRobot):
def Disabled(self):
while self.IsDisabled():
wpilib.Wait(0.01)
def Autonomous(self):
self.GetWatchdog().SetEnabled(False)
while self.IsAutonomous() and self.IsEnabled():
wpilib.Wait(0.01)
def OperatorControl(self):
# Create the watchdog (and actually use it)
dog = self.GetWatchdog()
dog.SetEnabled(True)
dog.SetExpiration(0.25)
compressor.Start()
while self.IsOperatorControl() and self.IsEnabled():
dog.Feed()
leftMotor.Set(DriveStick.GetY())
wpilib.Wait(0.04)
def run():
robot = Zaphod()
robot.StartCompetition()
return robot

@ -1 +0,0 @@
Subproject commit 38f84b43ffa698cede9b34438f52be918614da24

@ -1 +0,0 @@
Subproject commit a4fcf4e9355a71ae4f9136245779fe779a8f0446

@ -1 +0,0 @@
Subproject commit 1d6603f2178a007c83b67f5e6d8366e578ccc8b7