Skip to content

Commit bc2e13a

Browse files
author
James Hagborg
committed
Rename packages and kill any pesky warnings
1 parent b12876d commit bc2e13a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+128
-127
lines changed

src/main/java/org/usfirst/frc/team69/util/CommandBuilder.java renamed to src/main/java/org/hyperonline/hyperlib/CommandBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.usfirst.frc.team69.util;
1+
package org.hyperonline.hyperlib;
22

33
import java.util.Collections;
44
import java.util.function.BooleanSupplier;

src/main/java/org/usfirst/frc/team69/util/HYPERRobot.java renamed to src/main/java/org/hyperonline/hyperlib/HYPERRobot.java

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
package org.usfirst.frc.team69.util;
1+
package org.hyperonline.hyperlib;
22

3-
import edu.wpi.first.wpilibj.IterativeRobot;
3+
import edu.wpi.first.wpilibj.TimedRobot;
44
import edu.wpi.first.wpilibj.command.Scheduler;
55
import edu.wpi.first.wpilibj.livewindow.LiveWindow;
66

77
/**
8-
* The {@link HYPERRobot} extends {@link IterativeRobot} to provide code which
8+
* The {@link HYPERRobot} extends {@link TimedRobot} to provide code which
99
* is mostly the same in every robot. Commands and periodic events (through
1010
* {@link PeriodicScheduler} run in every mode except test mode, where the
1111
* {@link LiveWindow} runs.
1212
*
1313
* @author James Hagborg
1414
*
1515
*/
16-
public abstract class HYPERRobot extends IterativeRobot {
16+
public abstract class HYPERRobot extends TimedRobot {
1717
/**
1818
* Initialize the robot. This initializes in the following order:
1919
* <ul>
@@ -41,7 +41,7 @@ public final void robotInit() {
4141
* buttons, but not any commands, as {@link #initCommands} will not be
4242
* called until after this.
4343
*
44-
* If you are using the hyperLib {@link org.usfirst.frc.team69.util.oi.OI},
44+
* If you are using the hyperLib {@link org.hyperonline.hyperlib.oi.OI},
4545
* this is where you would call the constructor for the OI.
4646
*/
4747
protected abstract void initOI();
@@ -64,8 +64,8 @@ public final void robotInit() {
6464
/**
6565
* Initialize commands. This is where you should add commands to the OI and
6666
* the autonomous command chooser. If you are using the hyperLib
67-
* {@link org.usfirst.frc.team69.util.oi.OI}, this is where you should call
68-
* {@link org.usfirst.frc.team69.util.oi.OI#initCommands}
67+
* {@link org.hyperonline.hyperlib.oi.OI}, this is where you should call
68+
* {@link org.hyperonline.hyperlib.oi.OI#initCommands}
6969
*/
7070
protected abstract void initCommands();
7171

@@ -92,12 +92,4 @@ public void autonomousPeriodic() {
9292
public void teleopPeriodic() {
9393
PeriodicScheduler.getInstance().run();
9494
}
95-
96-
/**
97-
* {@inheritDoc}
98-
*/
99-
@Override
100-
public void testPeriodic() {
101-
LiveWindow.run();
102-
}
10395
}

src/main/java/org/usfirst/frc/team69/util/PeriodicScheduler.java renamed to src/main/java/org/hyperonline/hyperlib/PeriodicScheduler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.usfirst.frc.team69.util;
1+
package org.hyperonline.hyperlib;
22

33
import java.util.ArrayList;
44

src/main/java/org/usfirst/frc/team69/util/QuickCommand.java renamed to src/main/java/org/hyperonline/hyperlib/QuickCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.usfirst.frc.team69.util;
1+
package org.hyperonline.hyperlib;
22

33
import java.util.function.BooleanSupplier;
44
import java.util.function.DoubleSupplier;

src/main/java/org/usfirst/frc/team69/util/RobotInspector.java renamed to src/main/java/org/hyperonline/hyperlib/RobotInspector.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
package org.usfirst.frc.team69.util;
1+
package org.hyperonline.hyperlib;
22

33
import java.io.IOException;
44

5-
import org.usfirst.frc.team69.util.oi.BadOIMapException;
6-
import org.usfirst.frc.team69.util.oi.OI;
7-
import org.usfirst.frc.team69.util.port.DuplicatePortException;
8-
import org.usfirst.frc.team69.util.port.InvalidPortException;
9-
import org.usfirst.frc.team69.util.port.PortMapper;
5+
import org.hyperonline.hyperlib.oi.BadOIMapException;
6+
import org.hyperonline.hyperlib.oi.OI;
7+
import org.hyperonline.hyperlib.port.DuplicatePortException;
8+
import org.hyperonline.hyperlib.port.InvalidPortException;
9+
import org.hyperonline.hyperlib.port.PortMapper;
1010

1111
/**
1212
* This is the entry point for running RobotInspector. This will verify both the

src/main/java/org/usfirst/frc/team69/util/auto/AutoPref.java renamed to src/main/java/org/hyperonline/hyperlib/auto/AutoPref.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.usfirst.frc.team69.util.auto;
1+
package org.hyperonline.hyperlib.auto;
22

33
import static java.lang.annotation.ElementType.*;
44
import static java.lang.annotation.RetentionPolicy.*;

src/main/java/org/usfirst/frc/team69/util/auto/AutonomousInfo.java renamed to src/main/java/org/hyperonline/hyperlib/auto/AutonomousInfo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.usfirst.frc.team69.util.auto;
1+
package org.hyperonline.hyperlib.auto;
22

33
import java.util.Collection;
44
import java.util.HashMap;

src/main/java/org/usfirst/frc/team69/util/auto/AutonomousPreference.java renamed to src/main/java/org/hyperonline/hyperlib/auto/AutonomousPreference.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.usfirst.frc.team69.util.auto;
1+
package org.hyperonline.hyperlib.auto;
22

33
import java.util.Objects;
44

src/main/java/org/usfirst/frc/team69/util/auto/AutonomousRoutine.java renamed to src/main/java/org/hyperonline/hyperlib/auto/AutonomousRoutine.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
package org.usfirst.frc.team69.util.auto;
1+
package org.hyperonline.hyperlib.auto;
22

33
import java.lang.reflect.Field;
44
import java.util.ArrayList;
55
import java.util.List;
66
import java.util.Objects;
77

8-
import org.usfirst.frc.team69.util.CommandBuilder;
9-
import org.usfirst.frc.team69.util.pref.DoublePreference;
8+
import org.hyperonline.hyperlib.CommandBuilder;
9+
import org.hyperonline.hyperlib.pref.DoublePreference;
1010

1111
import edu.wpi.first.wpilibj.DriverStation;
1212
import edu.wpi.first.wpilibj.SendableBase;

src/main/java/org/usfirst/frc/team69/util/auto/AutonomousStrategy.java renamed to src/main/java/org/hyperonline/hyperlib/auto/AutonomousStrategy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.usfirst.frc.team69.util.auto;
1+
package org.hyperonline.hyperlib.auto;
22

33
import java.util.Collection;
44
import java.util.HashMap;

0 commit comments

Comments
 (0)