From 19c4b2a45d700ea4b33537af252160fc2a85af0b Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Tue, 8 Apr 2014 17:15:31 -0400 Subject: [PATCH] Removed python folder from master --- python/drive.py | 6 ------ python/main.py | 36 ------------------------------------ python/pyfrc | 1 - python/pynetworktables | 1 - python/robotpy | 1 - 5 files changed, 45 deletions(-) delete mode 100644 python/drive.py delete mode 100644 python/main.py delete mode 160000 python/pyfrc delete mode 160000 python/pynetworktables delete mode 160000 python/robotpy diff --git a/python/drive.py b/python/drive.py deleted file mode 100644 index fe4c06e..0000000 --- a/python/drive.py +++ /dev/null @@ -1,6 +0,0 @@ -try: - import wpilib -except ImportError: - from pyfrc import wpilib -class drive(): - def _init_(self, rightBack, rightMid, rightFront, leftBack, leftMid, leftFront): diff --git a/python/main.py b/python/main.py deleted file mode 100644 index 34b0755..0000000 --- a/python/main.py +++ /dev/null @@ -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 diff --git a/python/pyfrc b/python/pyfrc deleted file mode 160000 index 38f84b4..0000000 --- a/python/pyfrc +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 38f84b43ffa698cede9b34438f52be918614da24 diff --git a/python/pynetworktables b/python/pynetworktables deleted file mode 160000 index a4fcf4e..0000000 --- a/python/pynetworktables +++ /dev/null @@ -1 +0,0 @@ -Subproject commit a4fcf4e9355a71ae4f9136245779fe779a8f0446 diff --git a/python/robotpy b/python/robotpy deleted file mode 160000 index 1d6603f..0000000 --- a/python/robotpy +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 1d6603f2178a007c83b67f5e6d8366e578ccc8b7