From 2d33d7204d9a917a4bdd914c99059a66261a6ef3 Mon Sep 17 00:00:00 2001 From: lukesta182 <33330639+lukesta182@users.noreply.github.com> Date: Tue, 5 Mar 2019 21:24:34 -0700 Subject: [PATCH 1/2] spell check we dont look dumb now --- .../src/main/java/org/usfirst/frc4388/robot/Robot.java | 2 +- .../robot/subsystems/{Pnumatics.java => Pneumatics.java} | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) rename 2019robot/src/main/java/org/usfirst/frc4388/robot/subsystems/{Pnumatics.java => Pneumatics.java} (91%) diff --git a/2019robot/src/main/java/org/usfirst/frc4388/robot/Robot.java b/2019robot/src/main/java/org/usfirst/frc4388/robot/Robot.java index 59c7131..872b737 100644 --- a/2019robot/src/main/java/org/usfirst/frc4388/robot/Robot.java +++ b/2019robot/src/main/java/org/usfirst/frc4388/robot/Robot.java @@ -39,7 +39,7 @@ public class Robot extends IterativeRobot public static final Climber climber = new Climber(); - public static final Pnumatics pnumatics = new Pnumatics(); + public static final Pneumatics pnumatics = new Pneumatics(); public static final long periodMS = 10; public static final ControlLooper controlLoop = new ControlLooper("Main control loop", periodMS); diff --git a/2019robot/src/main/java/org/usfirst/frc4388/robot/subsystems/Pnumatics.java b/2019robot/src/main/java/org/usfirst/frc4388/robot/subsystems/Pneumatics.java similarity index 91% rename from 2019robot/src/main/java/org/usfirst/frc4388/robot/subsystems/Pnumatics.java rename to 2019robot/src/main/java/org/usfirst/frc4388/robot/subsystems/Pneumatics.java index ebe237e..a4ca5f0 100644 --- a/2019robot/src/main/java/org/usfirst/frc4388/robot/subsystems/Pnumatics.java +++ b/2019robot/src/main/java/org/usfirst/frc4388/robot/subsystems/Pneumatics.java @@ -6,7 +6,7 @@ import org.usfirst.frc4388.robot.RobotMap; import edu.wpi.first.wpilibj.DoubleSolenoid; import edu.wpi.first.wpilibj.command.Subsystem; -public class Pnumatics extends Subsystem { +public class Pneumatics extends Subsystem { private DoubleSolenoid speedShift; @@ -15,7 +15,7 @@ public class Pnumatics extends Subsystem { private DoubleSolenoid wrist; - public Pnumatics() { + public Pneumatics() { try { speedShift = new DoubleSolenoid(1,0,1); hatchIntake = new DoubleSolenoid(1,2,3); @@ -23,7 +23,7 @@ public class Pnumatics extends Subsystem { wrist = new DoubleSolenoid(1,6,7); } catch (Exception e) { - System.err.println("An error occurred in the Pnumatics constructor"); + System.err.println("An error occurred in the Pneumatics constructor"); } } From 5e200b191e53bd0a2f1a76edfb7c6f0a226582ee Mon Sep 17 00:00:00 2001 From: lukesta182 <33330639+lukesta182@users.noreply.github.com> Date: Tue, 5 Mar 2019 21:26:46 -0700 Subject: [PATCH 2/2] changed to timed robot timed robot is better becase it calls and checkes things without driver station input --- 2019robot/src/main/java/org/usfirst/frc4388/robot/Robot.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/2019robot/src/main/java/org/usfirst/frc4388/robot/Robot.java b/2019robot/src/main/java/org/usfirst/frc4388/robot/Robot.java index 872b737..bbb6698 100644 --- a/2019robot/src/main/java/org/usfirst/frc4388/robot/Robot.java +++ b/2019robot/src/main/java/org/usfirst/frc4388/robot/Robot.java @@ -2,6 +2,7 @@ package org.usfirst.frc4388.robot; import edu.wpi.first.wpilibj.IterativeRobot; +import edu.wpi.first.wpilibj.TimedRobot; import edu.wpi.first.wpilibj.CameraServer; import edu.wpi.first.wpilibj.DriverStation; //import edu.wpi.first.wpilibj.PowerDistributionPanel; @@ -23,7 +24,7 @@ import org.usfirst.frc4388.robot.subsystems.Drive; import org.usfirst.frc4388.robot.subsystems.Drive.DriveControlMode;; -public class Robot extends IterativeRobot +public class Robot extends TimedRobot { public static OI oi;