From 44441daad7937e4dd7fe86a22be69261b2e72abd Mon Sep 17 00:00:00 2001 From: Thad House Date: Sat, 21 Feb 2026 14:35:26 -0800 Subject: [PATCH] [wpilib] Use reflection to load main class, remove main from templates (#8627) #8626 needs to switch to using reflection to load the robot class. Do that with this PR so it's separate. Also, remove the duplicated main files from the template, and instead fixup vscode to handle this properly. --- .../src/main/java/wpilib/robot/Main.java | 2 +- shared/examplecheck.gradle | 6 +- .../src/main/cpp/examples/examples.json | 1 - .../java/org/wpilib/framework/RobotBase.java | 41 +++++-- wpilibjExamples/build.gradle | 10 +- wpilibjExamples/publish.gradle | 10 ++ .../src/main/java/org/wpilib/Executor.java | 27 +++++ .../{examples/addressableled => }/Main.java | 4 +- .../wpilib/examples/apriltagsvision/Main.java | 25 ----- .../org/wpilib/examples/arcadedrive/Main.java | 25 ----- .../examples/arcadedrivegamepad/Main.java | 25 ----- .../wpilib/examples/armsimulation/Main.java | 25 ----- .../java/org/wpilib/examples/canpdp/Main.java | 25 ----- .../examples/differentialdrivebot/Main.java | 25 ----- .../differentialdriveposeestimator/Main.java | 25 ----- .../examples/digitalcommunication/Main.java | 25 ----- .../examples/drivedistanceoffboard/Main.java | 25 ----- .../examples/dutycycleencoder/Main.java | 25 ----- .../wpilib/examples/dutycycleinput/Main.java | 25 ----- .../elevatorexponentialprofile/Main.java | 25 ----- .../elevatorexponentialsimulation/Main.java | 25 ----- .../examples/elevatorprofiledpid/Main.java | 25 ----- .../examples/elevatorsimulation/Main.java | 25 ----- .../elevatortrapezoidprofile/Main.java | 25 ----- .../org/wpilib/examples/encoder/Main.java | 25 ----- .../org/wpilib/examples/eventloop/Main.java | 25 ----- .../java/org/wpilib/examples/examples.json | 106 +++++++++--------- .../flywheelbangbangcontroller/Main.java | 25 ----- .../wpilib/examples/gettingstarted/Main.java | 25 ----- .../java/org/wpilib/examples/gyro/Main.java | 25 ----- .../org/wpilib/examples/gyromecanum/Main.java | 25 ----- .../wpilib/examples/hatchbotinlined/Main.java | 25 ----- .../examples/hatchbottraditional/Main.java | 25 ----- .../org/wpilib/examples/hidrumble/Main.java | 25 ----- .../org/wpilib/examples/httpcamera/Main.java | 25 ----- .../examples/i2ccommunication/Main.java | 25 ----- .../examples/intermediatevision/Main.java | 25 ----- .../org/wpilib/examples/mecanumbot/Main.java | 25 ----- .../wpilib/examples/mecanumdrive/Main.java | 25 ----- .../mecanumdriveposeestimator/Main.java | 25 ----- .../org/wpilib/examples/mechanism2d/Main.java | 25 ----- .../wpilib/examples/motorcontrol/Main.java | 25 ----- .../examples/potentiometerpid/Main.java | 25 ----- .../org/wpilib/examples/quickvision/Main.java | 25 ----- .../examples/rapidreactcommandbot/Main.java | 25 ----- .../wpilib/examples/romireference/Main.java | 25 ----- .../wpilib/examples/selectcommand/Main.java | 25 ----- .../Main.java | 25 ----- .../org/wpilib/examples/solenoid/Main.java | 25 ----- .../wpilib/examples/statespacearm/Main.java | 25 ----- .../examples/statespaceelevator/Main.java | 25 ----- .../examples/statespaceflywheel/Main.java | 25 ----- .../statespaceflywheelsysid/Main.java | 25 ----- .../org/wpilib/examples/swervebot/Main.java | 25 ----- .../swervedriveposeestimator/Main.java | 25 ----- .../wpilib/examples/sysidroutine/Main.java | 25 ----- .../org/wpilib/examples/tankdrive/Main.java | 25 ----- .../examples/tankdrivegamepad/Main.java | 25 ----- .../org/wpilib/examples/unittest/Main.java | 25 ----- .../wpilib/examples/xrpreference/Main.java | 25 ----- .../org/wpilib/examples/xrptimed/Main.java | 25 ----- .../snippets/accelerometercollision/Main.java | 25 ----- .../snippets/accelerometerfilter/Main.java | 25 ----- .../snippets/adxlaccelerometers/Main.java | 25 ----- .../snippets/analogaccelerometer/Main.java | 25 ----- .../wpilib/snippets/analogencoder/Main.java | 25 ----- .../org/wpilib/snippets/analoginput/Main.java | 25 ----- .../snippets/analogpotentiometer/Main.java | 25 ----- .../wpilib/snippets/digitalinput/Main.java | 25 ----- .../snippets/dutycycleencoder/Main.java | 25 ----- .../org/wpilib/snippets/encoder/Main.java | 25 ----- .../wpilib/snippets/encoderdrive/Main.java | 25 ----- .../wpilib/snippets/encoderhoming/Main.java | 25 ----- .../org/wpilib/snippets/limitswitch/Main.java | 25 ----- .../org/wpilib/snippets/onboardimu/Main.java | 25 ----- .../snippets/profiledpidfeedforward/Main.java | 25 ----- .../java/org/wpilib/snippets/snippets.json | 30 ++--- .../org/wpilib/templates/commandv2/Main.java | 25 ----- .../templates/commandv2skeleton/Main.java | 15 --- .../wpilib/templates/educational/Main.java | 25 ----- .../org/wpilib/templates/opmode/Main.java | 25 ----- .../templates/robotbaseskeleton/Main.java | 25 ----- .../wpilib/templates/romicommandv2/Main.java | 25 ----- .../templates/romieducational/Main.java | 25 ----- .../org/wpilib/templates/romitimed/Main.java | 25 ----- .../java/org/wpilib/templates/templates.json | 30 ++--- .../java/org/wpilib/templates/timed/Main.java | 25 ----- .../wpilib/templates/timedskeleton/Main.java | 25 ----- .../org/wpilib/templates/timeslice/Main.java | 25 ----- .../templates/timesliceskeleton/Main.java | 25 ----- .../wpilib/templates/xrpcommandv2/Main.java | 25 ----- .../wpilib/templates/xrpeducational/Main.java | 25 ----- .../org/wpilib/templates/xrptimed/Main.java | 25 ----- 93 files changed, 167 insertions(+), 2140 deletions(-) create mode 100644 wpilibjExamples/src/main/java/org/wpilib/Executor.java rename wpilibjExamples/src/main/java/org/wpilib/{examples/addressableled => }/Main.java (89%) delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/examples/apriltagsvision/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/examples/arcadedrive/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/examples/arcadedrivegamepad/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/examples/armsimulation/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/examples/canpdp/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/examples/differentialdrivebot/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/examples/differentialdriveposeestimator/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/examples/digitalcommunication/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/examples/drivedistanceoffboard/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/examples/dutycycleencoder/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/examples/dutycycleinput/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/examples/elevatorexponentialprofile/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/examples/elevatorexponentialsimulation/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/examples/elevatorprofiledpid/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/examples/elevatorsimulation/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/examples/elevatortrapezoidprofile/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/examples/encoder/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/examples/eventloop/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/examples/flywheelbangbangcontroller/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/examples/gettingstarted/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/examples/gyro/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/examples/gyromecanum/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/examples/hatchbotinlined/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/examples/hatchbottraditional/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/examples/hidrumble/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/examples/httpcamera/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/examples/i2ccommunication/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/examples/intermediatevision/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/examples/mecanumbot/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/examples/mecanumdrive/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/examples/mecanumdriveposeestimator/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/examples/mechanism2d/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/examples/motorcontrol/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/examples/potentiometerpid/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/examples/quickvision/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/examples/rapidreactcommandbot/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/examples/romireference/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/examples/selectcommand/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/examples/simpledifferentialdrivesimulation/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/examples/solenoid/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/examples/statespacearm/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/examples/statespaceelevator/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/examples/statespaceflywheel/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/examples/statespaceflywheelsysid/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/examples/swervebot/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/examples/swervedriveposeestimator/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/examples/sysidroutine/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/examples/tankdrive/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/examples/tankdrivegamepad/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/examples/unittest/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/examples/xrpreference/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/examples/xrptimed/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/snippets/accelerometercollision/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/snippets/accelerometerfilter/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/snippets/adxlaccelerometers/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/snippets/analogaccelerometer/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/snippets/analogencoder/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/snippets/analoginput/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/snippets/analogpotentiometer/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/snippets/digitalinput/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/snippets/dutycycleencoder/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/snippets/encoder/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/snippets/encoderdrive/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/snippets/encoderhoming/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/snippets/limitswitch/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/snippets/onboardimu/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/snippets/profiledpidfeedforward/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/templates/commandv2/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/templates/commandv2skeleton/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/templates/educational/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/templates/opmode/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/templates/robotbaseskeleton/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/templates/romicommandv2/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/templates/romieducational/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/templates/romitimed/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/templates/timed/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/templates/timedskeleton/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/templates/timeslice/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/templates/timesliceskeleton/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/templates/xrpcommandv2/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/templates/xrpeducational/Main.java delete mode 100644 wpilibjExamples/src/main/java/org/wpilib/templates/xrptimed/Main.java diff --git a/developerRobot/src/main/java/wpilib/robot/Main.java b/developerRobot/src/main/java/wpilib/robot/Main.java index 6b3bacb952..63bd8e0715 100644 --- a/developerRobot/src/main/java/wpilib/robot/Main.java +++ b/developerRobot/src/main/java/wpilib/robot/Main.java @@ -15,6 +15,6 @@ public final class Main { *

If you change your main robot class, change the parameter type. */ public static void main(String... args) { - RobotBase.startRobot(Robot::new); + RobotBase.startRobot(Robot.class); } } diff --git a/shared/examplecheck.gradle b/shared/examplecheck.gradle index e2a17e8c80..89106cb158 100644 --- a/shared/examplecheck.gradle +++ b/shared/examplecheck.gradle @@ -82,7 +82,7 @@ task checkTemplates(type: Task) { assert it.gradlebase != null assert it.commandversion != null if (it.gradlebase == 'java') { - assert it.mainclass != null + assert it.robotclass != null } } } @@ -101,7 +101,7 @@ task checkExamples(type: Task) { assert it.gradlebase != null assert it.commandversion != null if (it.gradlebase == 'java') { - assert it.mainclass != null + assert it.robotclass != null } } } @@ -119,7 +119,7 @@ task checkSnippets(type: Task) { assert it.foldername != null assert it.gradlebase != null if (it.gradlebase == 'java') { - assert it.mainclass != null + assert it.robotclass != null } } } diff --git a/wpilibcExamples/src/main/cpp/examples/examples.json b/wpilibcExamples/src/main/cpp/examples/examples.json index 13ddf8df49..d129b471a0 100644 --- a/wpilibcExamples/src/main/cpp/examples/examples.json +++ b/wpilibcExamples/src/main/cpp/examples/examples.json @@ -520,7 +520,6 @@ ], "foldername": "Xrptimed", "gradlebase": "cppxrp", - "mainclass": "Main", "commandversion": 2, "extravendordeps": [ "xrp" diff --git a/wpilibj/src/main/java/org/wpilib/framework/RobotBase.java b/wpilibj/src/main/java/org/wpilib/framework/RobotBase.java index 08969b89a3..3d904c8b3f 100644 --- a/wpilibj/src/main/java/org/wpilib/framework/RobotBase.java +++ b/wpilibj/src/main/java/org/wpilib/framework/RobotBase.java @@ -4,8 +4,8 @@ package org.wpilib.framework; +import java.lang.reflect.Constructor; import java.util.concurrent.locks.ReentrantLock; -import java.util.function.Supplier; import org.wpilib.driverstation.DriverStation; import org.wpilib.hardware.hal.HAL; import org.wpilib.hardware.hal.HALUtil; @@ -285,13 +285,39 @@ public abstract class RobotBase implements AutoCloseable { private static RobotBase m_robotCopy; private static boolean m_suppressExitWarning; + private static T constructRobot(Class robotClass) throws Throwable { + Constructor[] constructors = robotClass.getConstructors(); + Constructor defaultConstructor = null; + for (Constructor constructor : constructors) { + Class[] paramTypes = constructor.getParameterTypes(); + if (paramTypes.length == 0) { + if (defaultConstructor != null) { + throw new IllegalArgumentException( + "Multiple default constructors found in robot class " + robotClass.getName()); + } + defaultConstructor = constructor; + } + } + + T robot; + + if (defaultConstructor != null) { + robot = robotClass.cast(defaultConstructor.newInstance()); + } else { + throw new IllegalArgumentException( + "No valid constructor found in robot class " + robotClass.getName()); + } + + return robot; + } + /** Run the robot main loop. */ - private static void runRobot(Supplier robotSupplier) { + private static void runRobot(Class robotClass) { System.out.println("********** Robot program starting **********"); T robot; try { - robot = robotSupplier.get(); + robot = constructRobot(robotClass); } catch (Throwable throwable) { Throwable cause = throwable.getCause(); if (cause != null) { @@ -366,10 +392,9 @@ public abstract class RobotBase implements AutoCloseable { /** * Starting point for the applications. * - * @param Robot subclass. - * @param robotSupplier Function that returns an instance of the robot subclass. + * @param robotClass Robot subclass type. */ - public static void startRobot(Supplier robotSupplier) { + public static void startRobot(Class robotClass) { // Check that the MSVC runtime is valid. WPIUtilJNI.checkMsvcRuntime(); @@ -391,7 +416,7 @@ public abstract class RobotBase implements AutoCloseable { Thread thread = new Thread( () -> { - runRobot(robotSupplier); + runRobot(robotClass); HAL.exitMain(); }, "robot main"); @@ -411,7 +436,7 @@ public abstract class RobotBase implements AutoCloseable { Thread.currentThread().interrupt(); } } else { - runRobot(robotSupplier); + runRobot(robotClass); } // On RIO, this will just terminate rather than shutting down cleanly (it's a no-op in sim). diff --git a/wpilibjExamples/build.gradle b/wpilibjExamples/build.gradle index 9e6f5beca2..8662bf9d9d 100644 --- a/wpilibjExamples/build.gradle +++ b/wpilibjExamples/build.gradle @@ -177,7 +177,10 @@ model { new groovy.json.JsonSlurper().parseText(exampleFile.text).each { entry -> project.tasks.create("run${entry.foldername}", JavaExec) { run -> run.group = "run examples" - run.mainClass = "org.wpilib.examples." + entry.foldername + "." + entry.mainclass + run.mainClass = "org.wpilib.Executor" + run.args = [ + "org.wpilib.examples." + entry.foldername + "." + entry.robotclass + ] run.classpath = sourceSets.main.runtimeClasspath run.dependsOn it.tasks.install run.systemProperty 'java.library.path', filePath @@ -222,7 +225,10 @@ model { new groovy.json.JsonSlurper().parseText(snippetsFile.text).each { entry -> project.tasks.create("runSnippet${entry.foldername}", JavaExec) { run -> run.group = "run snippets" - run.mainClass = "org.wpilib.snippets." + entry.foldername + "." + entry.mainclass + run.mainClass = "org.wpilib.Executor" + run.args = [ + "org.wpilib.snippets." + entry.foldername + "." + entry.robotclass + ] run.classpath = sourceSets.main.runtimeClasspath run.dependsOn it.tasks.install run.systemProperty 'java.library.path', filePath diff --git a/wpilibjExamples/publish.gradle b/wpilibjExamples/publish.gradle index d04d747824..0bb82f42b6 100644 --- a/wpilibjExamples/publish.gradle +++ b/wpilibjExamples/publish.gradle @@ -11,6 +11,8 @@ def commandsZipBaseName = '_GROUP_org_wpilib_wpilibj_ID_commands_CLS' def outputsFolder = file("$project.buildDir/outputs") +def mainFile = file("$projectDir/src/main/java/org/wpilib/Main.java") + task javaExamplesZip(type: Zip) { destinationDirectory = outputsFolder archiveBaseName = examplesZipBaseName @@ -19,6 +21,10 @@ task javaExamplesZip(type: Zip) { into '/' } + from(mainFile) { + into '/' + } + from('src/main/java/org/wpilib/examples') { into 'examples' } @@ -36,6 +42,10 @@ task javaTemplatesZip(type: Zip) { into '/' } + from(mainFile) { + into '/' + } + from('src/main/java/org/wpilib/templates') { into 'templates' } diff --git a/wpilibjExamples/src/main/java/org/wpilib/Executor.java b/wpilibjExamples/src/main/java/org/wpilib/Executor.java new file mode 100644 index 0000000000..bfbaf91c00 --- /dev/null +++ b/wpilibjExamples/src/main/java/org/wpilib/Executor.java @@ -0,0 +1,27 @@ +// Copyright (c) FIRST and other WPILib contributors. +// Open Source Software; you can modify and/or share it under the terms of +// the WPILib BSD license file in the root directory of this project. + +package org.wpilib; + +import org.wpilib.framework.RobotBase; + +/** This is the executor to launch template projects. */ +public final class Executor { + private Executor() {} + + /** Main initialization function. */ + public static void main(String... args) throws Throwable { + // Load the class file for the robot. + String packagePath = args[0]; + ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); + + System.out.println("Loading robot class: " + packagePath); + + Class robotClass = classLoader.loadClass(packagePath); + + System.out.println("Starting robot: " + robotClass.getName()); + + RobotBase.startRobot(robotClass.asSubclass(RobotBase.class)); + } +} diff --git a/wpilibjExamples/src/main/java/org/wpilib/examples/addressableled/Main.java b/wpilibjExamples/src/main/java/org/wpilib/Main.java similarity index 89% rename from wpilibjExamples/src/main/java/org/wpilib/examples/addressableled/Main.java rename to wpilibjExamples/src/main/java/org/wpilib/Main.java index acd802fb05..827398249f 100644 --- a/wpilibjExamples/src/main/java/org/wpilib/examples/addressableled/Main.java +++ b/wpilibjExamples/src/main/java/org/wpilib/Main.java @@ -2,7 +2,7 @@ // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. -package org.wpilib.examples.addressableled; +package org.wpilib; import org.wpilib.framework.RobotBase; @@ -20,6 +20,6 @@ public final class Main { *

If you change your main robot class, change the parameter type. */ public static void main(String... args) { - RobotBase.startRobot(Robot::new); + RobotBase.startRobot(org.wpilib.templates.timed.Robot.class); } } diff --git a/wpilibjExamples/src/main/java/org/wpilib/examples/apriltagsvision/Main.java b/wpilibjExamples/src/main/java/org/wpilib/examples/apriltagsvision/Main.java deleted file mode 100644 index 81ba89ca97..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/examples/apriltagsvision/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.examples.apriltagsvision; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/examples/arcadedrive/Main.java b/wpilibjExamples/src/main/java/org/wpilib/examples/arcadedrive/Main.java deleted file mode 100644 index ba836052ef..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/examples/arcadedrive/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.examples.arcadedrive; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/examples/arcadedrivegamepad/Main.java b/wpilibjExamples/src/main/java/org/wpilib/examples/arcadedrivegamepad/Main.java deleted file mode 100644 index c06bf25045..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/examples/arcadedrivegamepad/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.examples.arcadedrivegamepad; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/examples/armsimulation/Main.java b/wpilibjExamples/src/main/java/org/wpilib/examples/armsimulation/Main.java deleted file mode 100644 index 141aac5d20..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/examples/armsimulation/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.examples.armsimulation; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/examples/canpdp/Main.java b/wpilibjExamples/src/main/java/org/wpilib/examples/canpdp/Main.java deleted file mode 100644 index a9f7ec2626..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/examples/canpdp/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.examples.canpdp; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/examples/differentialdrivebot/Main.java b/wpilibjExamples/src/main/java/org/wpilib/examples/differentialdrivebot/Main.java deleted file mode 100644 index 8fbae2bb95..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/examples/differentialdrivebot/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.examples.differentialdrivebot; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/examples/differentialdriveposeestimator/Main.java b/wpilibjExamples/src/main/java/org/wpilib/examples/differentialdriveposeestimator/Main.java deleted file mode 100644 index fed4caf508..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/examples/differentialdriveposeestimator/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.examples.differentialdriveposeestimator; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/examples/digitalcommunication/Main.java b/wpilibjExamples/src/main/java/org/wpilib/examples/digitalcommunication/Main.java deleted file mode 100644 index bac4a6e3fd..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/examples/digitalcommunication/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.examples.digitalcommunication; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/examples/drivedistanceoffboard/Main.java b/wpilibjExamples/src/main/java/org/wpilib/examples/drivedistanceoffboard/Main.java deleted file mode 100644 index 84bc566f64..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/examples/drivedistanceoffboard/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.examples.drivedistanceoffboard; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/examples/dutycycleencoder/Main.java b/wpilibjExamples/src/main/java/org/wpilib/examples/dutycycleencoder/Main.java deleted file mode 100644 index 662622ae1e..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/examples/dutycycleencoder/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.examples.dutycycleencoder; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/examples/dutycycleinput/Main.java b/wpilibjExamples/src/main/java/org/wpilib/examples/dutycycleinput/Main.java deleted file mode 100644 index cf67dcec08..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/examples/dutycycleinput/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.examples.dutycycleinput; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/examples/elevatorexponentialprofile/Main.java b/wpilibjExamples/src/main/java/org/wpilib/examples/elevatorexponentialprofile/Main.java deleted file mode 100644 index a4bb556609..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/examples/elevatorexponentialprofile/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.examples.elevatorexponentialprofile; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/examples/elevatorexponentialsimulation/Main.java b/wpilibjExamples/src/main/java/org/wpilib/examples/elevatorexponentialsimulation/Main.java deleted file mode 100644 index ec4a846dec..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/examples/elevatorexponentialsimulation/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.examples.elevatorexponentialsimulation; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/examples/elevatorprofiledpid/Main.java b/wpilibjExamples/src/main/java/org/wpilib/examples/elevatorprofiledpid/Main.java deleted file mode 100644 index eaf99a6d69..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/examples/elevatorprofiledpid/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.examples.elevatorprofiledpid; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/examples/elevatorsimulation/Main.java b/wpilibjExamples/src/main/java/org/wpilib/examples/elevatorsimulation/Main.java deleted file mode 100644 index ba31ab6e72..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/examples/elevatorsimulation/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.examples.elevatorsimulation; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/examples/elevatortrapezoidprofile/Main.java b/wpilibjExamples/src/main/java/org/wpilib/examples/elevatortrapezoidprofile/Main.java deleted file mode 100644 index 11cce10256..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/examples/elevatortrapezoidprofile/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.examples.elevatortrapezoidprofile; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/examples/encoder/Main.java b/wpilibjExamples/src/main/java/org/wpilib/examples/encoder/Main.java deleted file mode 100644 index e0eefa0c65..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/examples/encoder/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.examples.encoder; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/examples/eventloop/Main.java b/wpilibjExamples/src/main/java/org/wpilib/examples/eventloop/Main.java deleted file mode 100644 index 8a0a90dc19..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/examples/eventloop/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.examples.eventloop; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/examples/examples.json b/wpilibjExamples/src/main/java/org/wpilib/examples/examples.json index 16e95134c9..0b7e1b96cd 100644 --- a/wpilibjExamples/src/main/java/org/wpilib/examples/examples.json +++ b/wpilibjExamples/src/main/java/org/wpilib/examples/examples.json @@ -7,7 +7,7 @@ ], "foldername": "gettingstarted", "gradlebase": "java", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2 }, { @@ -20,7 +20,7 @@ ], "foldername": "tankdrive", "gradlebase": "java", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2 }, { @@ -33,7 +33,7 @@ ], "foldername": "arcadedrive", "gradlebase": "java", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2 }, { @@ -46,7 +46,7 @@ ], "foldername": "mecanumdrive", "gradlebase": "java", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2 }, { @@ -59,7 +59,7 @@ ], "foldername": "canpdp", "gradlebase": "java", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2 }, { @@ -72,7 +72,7 @@ ], "foldername": "solenoid", "gradlebase": "java", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2 }, { @@ -85,7 +85,7 @@ ], "foldername": "encoder", "gradlebase": "java", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2 }, { @@ -98,7 +98,7 @@ ], "foldername": "eventloop", "gradlebase": "java", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2 }, { @@ -113,7 +113,7 @@ ], "foldername": "potentiometerpid", "gradlebase": "java", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2, "hasunittests": true }, @@ -129,7 +129,7 @@ ], "foldername": "elevatortrapezoidprofile", "gradlebase": "java", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2 }, { @@ -144,7 +144,7 @@ ], "foldername": "elevatorexponentialprofile", "gradlebase": "java", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2 }, { @@ -158,7 +158,7 @@ ], "foldername": "elevatorprofiledpid", "gradlebase": "java", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2 }, { @@ -174,7 +174,7 @@ ], "foldername": "gyro", "gradlebase": "java", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2 }, { @@ -189,7 +189,7 @@ ], "foldername": "gyromecanum", "gradlebase": "java", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2 }, { @@ -201,7 +201,7 @@ ], "foldername": "hidrumble", "gradlebase": "java", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2 }, { @@ -218,7 +218,7 @@ ], "foldername": "mechanism2d", "gradlebase": "java", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2 }, { @@ -232,7 +232,7 @@ ], "foldername": "motorcontrol", "gradlebase": "java", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2 }, { @@ -243,7 +243,7 @@ ], "foldername": "quickvision", "gradlebase": "java", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2 }, { @@ -254,7 +254,7 @@ ], "foldername": "intermediatevision", "gradlebase": "java", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2 }, { @@ -265,7 +265,7 @@ ], "foldername": "httpcamera", "gradlebase": "java", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2 }, { @@ -277,7 +277,7 @@ ], "foldername": "apriltagsvision", "gradlebase": "java", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2 }, { @@ -295,7 +295,7 @@ ], "foldername": "hatchbottraditional", "gradlebase": "java", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2 }, { @@ -313,7 +313,7 @@ ], "foldername": "hatchbotinlined", "gradlebase": "java", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2 }, { @@ -335,7 +335,7 @@ ], "foldername": "rapidreactcommandbot", "gradlebase": "java", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2 }, { @@ -346,7 +346,7 @@ ], "foldername": "selectcommand", "gradlebase": "java", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2 }, { @@ -361,7 +361,7 @@ ], "foldername": "swervebot", "gradlebase": "java", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2 }, { @@ -376,7 +376,7 @@ ], "foldername": "mecanumbot", "gradlebase": "java", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2 }, { @@ -391,7 +391,7 @@ ], "foldername": "differentialdrivebot", "gradlebase": "java", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2 }, { @@ -404,7 +404,7 @@ ], "foldername": "arcadedrivegamepad", "gradlebase": "java", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2 }, { @@ -417,7 +417,7 @@ ], "foldername": "tankdrivegamepad", "gradlebase": "java", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2 }, { @@ -431,7 +431,7 @@ ], "foldername": "dutycycleencoder", "gradlebase": "java", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2 }, { @@ -444,7 +444,7 @@ ], "foldername": "dutycycleinput", "gradlebase": "java", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2 }, { @@ -457,7 +457,7 @@ ], "foldername": "addressableled", "gradlebase": "java", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2 }, { @@ -472,7 +472,7 @@ ], "foldername": "drivedistanceoffboard", "gradlebase": "java", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2 }, { @@ -488,7 +488,7 @@ ], "foldername": "statespaceflywheel", "gradlebase": "java", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2 }, { @@ -505,7 +505,7 @@ ], "foldername": "statespaceflywheelsysid", "gradlebase": "java", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2 }, { @@ -521,7 +521,7 @@ ], "foldername": "statespaceelevator", "gradlebase": "java", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2 }, { @@ -537,7 +537,7 @@ ], "foldername": "statespacearm", "gradlebase": "java", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2 }, { @@ -555,7 +555,7 @@ ], "foldername": "simpledifferentialdrivesimulation", "gradlebase": "java", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2 }, { @@ -571,7 +571,7 @@ ], "foldername": "elevatorsimulation", "gradlebase": "java", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2, "hasunittests": true }, @@ -589,7 +589,7 @@ ], "foldername": "elevatorexponentialsimulation", "gradlebase": "java", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2 }, { @@ -605,7 +605,7 @@ ], "foldername": "armsimulation", "gradlebase": "java", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2, "hasunittests": true }, @@ -618,7 +618,7 @@ ], "foldername": "unittest", "gradlebase": "java", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2, "hasunittests": true }, @@ -635,7 +635,7 @@ ], "foldername": "differentialdriveposeestimator", "gradlebase": "java", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2 }, { @@ -651,7 +651,7 @@ ], "foldername": "mecanumdriveposeestimator", "gradlebase": "java", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2 }, { @@ -667,7 +667,7 @@ ], "foldername": "swervedriveposeestimator", "gradlebase": "java", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2 }, { @@ -682,7 +682,7 @@ ], "foldername": "romireference", "gradlebase": "javaromi", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2, "extravendordeps": [ "romi" @@ -700,7 +700,7 @@ ], "foldername": "xrpreference", "gradlebase": "javaxrp", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2, "extravendordeps": [ "xrp" @@ -716,7 +716,7 @@ ], "foldername": "xrptimed", "gradlebase": "javaxrp", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2, "extravendordeps": [ "xrp" @@ -732,7 +732,7 @@ "foldername": "digitalcommunication", "gradlebase": "java", "commandversion": 2, - "mainclass": "Main", + "robotclass": "Robot", "hasunittests": true }, { @@ -745,7 +745,7 @@ "foldername": "i2ccommunication", "gradlebase": "java", "commandversion": 2, - "mainclass": "Main", + "robotclass": "Robot", "hasunittests": true }, { @@ -759,7 +759,7 @@ "foldername": "flywheelbangbangcontroller", "gradlebase": "java", "commandversion": 2, - "mainclass": "Main" + "robotclass": "Robot" }, { "name": "SysIdRoutine", @@ -772,6 +772,6 @@ "foldername": "sysidroutine", "gradlebase": "java", "commandversion": 2, - "mainclass": "Main" + "robotclass": "Robot" } ] diff --git a/wpilibjExamples/src/main/java/org/wpilib/examples/flywheelbangbangcontroller/Main.java b/wpilibjExamples/src/main/java/org/wpilib/examples/flywheelbangbangcontroller/Main.java deleted file mode 100644 index 2bf5bc9d26..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/examples/flywheelbangbangcontroller/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.examples.flywheelbangbangcontroller; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/examples/gettingstarted/Main.java b/wpilibjExamples/src/main/java/org/wpilib/examples/gettingstarted/Main.java deleted file mode 100644 index ae7538f523..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/examples/gettingstarted/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.examples.gettingstarted; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/examples/gyro/Main.java b/wpilibjExamples/src/main/java/org/wpilib/examples/gyro/Main.java deleted file mode 100644 index 3776b37465..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/examples/gyro/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.examples.gyro; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/examples/gyromecanum/Main.java b/wpilibjExamples/src/main/java/org/wpilib/examples/gyromecanum/Main.java deleted file mode 100644 index ce0037539c..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/examples/gyromecanum/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.examples.gyromecanum; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/examples/hatchbotinlined/Main.java b/wpilibjExamples/src/main/java/org/wpilib/examples/hatchbotinlined/Main.java deleted file mode 100644 index b59dd85e17..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/examples/hatchbotinlined/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.examples.hatchbotinlined; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/examples/hatchbottraditional/Main.java b/wpilibjExamples/src/main/java/org/wpilib/examples/hatchbottraditional/Main.java deleted file mode 100644 index 185abf2e72..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/examples/hatchbottraditional/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.examples.hatchbottraditional; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/examples/hidrumble/Main.java b/wpilibjExamples/src/main/java/org/wpilib/examples/hidrumble/Main.java deleted file mode 100644 index f52ad5d3fa..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/examples/hidrumble/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.examples.hidrumble; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/examples/httpcamera/Main.java b/wpilibjExamples/src/main/java/org/wpilib/examples/httpcamera/Main.java deleted file mode 100644 index a554c6d155..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/examples/httpcamera/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.examples.httpcamera; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/examples/i2ccommunication/Main.java b/wpilibjExamples/src/main/java/org/wpilib/examples/i2ccommunication/Main.java deleted file mode 100644 index a93f868dad..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/examples/i2ccommunication/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.examples.i2ccommunication; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/examples/intermediatevision/Main.java b/wpilibjExamples/src/main/java/org/wpilib/examples/intermediatevision/Main.java deleted file mode 100644 index 59e2c4a3ee..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/examples/intermediatevision/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.examples.intermediatevision; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/examples/mecanumbot/Main.java b/wpilibjExamples/src/main/java/org/wpilib/examples/mecanumbot/Main.java deleted file mode 100644 index 193f3fb1d8..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/examples/mecanumbot/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.examples.mecanumbot; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/examples/mecanumdrive/Main.java b/wpilibjExamples/src/main/java/org/wpilib/examples/mecanumdrive/Main.java deleted file mode 100644 index b8a2276bcf..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/examples/mecanumdrive/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.examples.mecanumdrive; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/examples/mecanumdriveposeestimator/Main.java b/wpilibjExamples/src/main/java/org/wpilib/examples/mecanumdriveposeestimator/Main.java deleted file mode 100644 index c1489b061b..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/examples/mecanumdriveposeestimator/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.examples.mecanumdriveposeestimator; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/examples/mechanism2d/Main.java b/wpilibjExamples/src/main/java/org/wpilib/examples/mechanism2d/Main.java deleted file mode 100644 index f8a66a5822..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/examples/mechanism2d/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.examples.mechanism2d; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/examples/motorcontrol/Main.java b/wpilibjExamples/src/main/java/org/wpilib/examples/motorcontrol/Main.java deleted file mode 100644 index 2093812125..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/examples/motorcontrol/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.examples.motorcontrol; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/examples/potentiometerpid/Main.java b/wpilibjExamples/src/main/java/org/wpilib/examples/potentiometerpid/Main.java deleted file mode 100644 index db077cd99c..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/examples/potentiometerpid/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.examples.potentiometerpid; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/examples/quickvision/Main.java b/wpilibjExamples/src/main/java/org/wpilib/examples/quickvision/Main.java deleted file mode 100644 index e5dc2dbc38..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/examples/quickvision/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.examples.quickvision; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/examples/rapidreactcommandbot/Main.java b/wpilibjExamples/src/main/java/org/wpilib/examples/rapidreactcommandbot/Main.java deleted file mode 100644 index e1e63bc048..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/examples/rapidreactcommandbot/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.examples.rapidreactcommandbot; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/examples/romireference/Main.java b/wpilibjExamples/src/main/java/org/wpilib/examples/romireference/Main.java deleted file mode 100644 index b4f98482d5..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/examples/romireference/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.examples.romireference; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/examples/selectcommand/Main.java b/wpilibjExamples/src/main/java/org/wpilib/examples/selectcommand/Main.java deleted file mode 100644 index 842b81d270..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/examples/selectcommand/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.examples.selectcommand; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/examples/simpledifferentialdrivesimulation/Main.java b/wpilibjExamples/src/main/java/org/wpilib/examples/simpledifferentialdrivesimulation/Main.java deleted file mode 100644 index c05b29c5ec..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/examples/simpledifferentialdrivesimulation/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.examples.simpledifferentialdrivesimulation; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/examples/solenoid/Main.java b/wpilibjExamples/src/main/java/org/wpilib/examples/solenoid/Main.java deleted file mode 100644 index 49b8ac655b..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/examples/solenoid/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.examples.solenoid; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/examples/statespacearm/Main.java b/wpilibjExamples/src/main/java/org/wpilib/examples/statespacearm/Main.java deleted file mode 100644 index 0d1d9a4265..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/examples/statespacearm/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.examples.statespacearm; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/examples/statespaceelevator/Main.java b/wpilibjExamples/src/main/java/org/wpilib/examples/statespaceelevator/Main.java deleted file mode 100644 index 7cc51bd97c..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/examples/statespaceelevator/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.examples.statespaceelevator; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/examples/statespaceflywheel/Main.java b/wpilibjExamples/src/main/java/org/wpilib/examples/statespaceflywheel/Main.java deleted file mode 100644 index a96f1824db..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/examples/statespaceflywheel/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.examples.statespaceflywheel; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/examples/statespaceflywheelsysid/Main.java b/wpilibjExamples/src/main/java/org/wpilib/examples/statespaceflywheelsysid/Main.java deleted file mode 100644 index 69f042c1c6..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/examples/statespaceflywheelsysid/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.examples.statespaceflywheelsysid; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/examples/swervebot/Main.java b/wpilibjExamples/src/main/java/org/wpilib/examples/swervebot/Main.java deleted file mode 100644 index 50bea52b39..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/examples/swervebot/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.examples.swervebot; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/examples/swervedriveposeestimator/Main.java b/wpilibjExamples/src/main/java/org/wpilib/examples/swervedriveposeestimator/Main.java deleted file mode 100644 index 6c70620271..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/examples/swervedriveposeestimator/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.examples.swervedriveposeestimator; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/examples/sysidroutine/Main.java b/wpilibjExamples/src/main/java/org/wpilib/examples/sysidroutine/Main.java deleted file mode 100644 index 9b6d4a2a83..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/examples/sysidroutine/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.examples.sysidroutine; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/examples/tankdrive/Main.java b/wpilibjExamples/src/main/java/org/wpilib/examples/tankdrive/Main.java deleted file mode 100644 index 082d089f5c..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/examples/tankdrive/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.examples.tankdrive; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/examples/tankdrivegamepad/Main.java b/wpilibjExamples/src/main/java/org/wpilib/examples/tankdrivegamepad/Main.java deleted file mode 100644 index 6f40c45ad7..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/examples/tankdrivegamepad/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.examples.tankdrivegamepad; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/examples/unittest/Main.java b/wpilibjExamples/src/main/java/org/wpilib/examples/unittest/Main.java deleted file mode 100644 index f9ba2c4dc3..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/examples/unittest/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.examples.unittest; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/examples/xrpreference/Main.java b/wpilibjExamples/src/main/java/org/wpilib/examples/xrpreference/Main.java deleted file mode 100644 index 824910e654..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/examples/xrpreference/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.examples.xrpreference; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/examples/xrptimed/Main.java b/wpilibjExamples/src/main/java/org/wpilib/examples/xrptimed/Main.java deleted file mode 100644 index 718bd8b36c..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/examples/xrptimed/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.examples.xrptimed; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/snippets/accelerometercollision/Main.java b/wpilibjExamples/src/main/java/org/wpilib/snippets/accelerometercollision/Main.java deleted file mode 100644 index 40c4cf7aa7..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/snippets/accelerometercollision/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.snippets.accelerometercollision; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/snippets/accelerometerfilter/Main.java b/wpilibjExamples/src/main/java/org/wpilib/snippets/accelerometerfilter/Main.java deleted file mode 100644 index 0172c847c0..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/snippets/accelerometerfilter/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.snippets.accelerometerfilter; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/snippets/adxlaccelerometers/Main.java b/wpilibjExamples/src/main/java/org/wpilib/snippets/adxlaccelerometers/Main.java deleted file mode 100644 index b07286243d..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/snippets/adxlaccelerometers/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.snippets.adxlaccelerometers; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/snippets/analogaccelerometer/Main.java b/wpilibjExamples/src/main/java/org/wpilib/snippets/analogaccelerometer/Main.java deleted file mode 100644 index 0ec8a0ea66..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/snippets/analogaccelerometer/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.snippets.analogaccelerometer; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/snippets/analogencoder/Main.java b/wpilibjExamples/src/main/java/org/wpilib/snippets/analogencoder/Main.java deleted file mode 100644 index 5a8291757c..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/snippets/analogencoder/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.snippets.analogencoder; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/snippets/analoginput/Main.java b/wpilibjExamples/src/main/java/org/wpilib/snippets/analoginput/Main.java deleted file mode 100644 index 203d8ad377..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/snippets/analoginput/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.snippets.analoginput; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/snippets/analogpotentiometer/Main.java b/wpilibjExamples/src/main/java/org/wpilib/snippets/analogpotentiometer/Main.java deleted file mode 100644 index b22606cf07..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/snippets/analogpotentiometer/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.snippets.analogpotentiometer; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/snippets/digitalinput/Main.java b/wpilibjExamples/src/main/java/org/wpilib/snippets/digitalinput/Main.java deleted file mode 100644 index 0669e4cdf5..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/snippets/digitalinput/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.snippets.digitalinput; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/snippets/dutycycleencoder/Main.java b/wpilibjExamples/src/main/java/org/wpilib/snippets/dutycycleencoder/Main.java deleted file mode 100644 index 25f0bcfbe6..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/snippets/dutycycleencoder/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.snippets.dutycycleencoder; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/snippets/encoder/Main.java b/wpilibjExamples/src/main/java/org/wpilib/snippets/encoder/Main.java deleted file mode 100644 index 7504ef5f47..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/snippets/encoder/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.snippets.encoder; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/snippets/encoderdrive/Main.java b/wpilibjExamples/src/main/java/org/wpilib/snippets/encoderdrive/Main.java deleted file mode 100644 index 9e59d54e67..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/snippets/encoderdrive/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.snippets.encoderdrive; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/snippets/encoderhoming/Main.java b/wpilibjExamples/src/main/java/org/wpilib/snippets/encoderhoming/Main.java deleted file mode 100644 index 4325b6822d..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/snippets/encoderhoming/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.snippets.encoderhoming; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/snippets/limitswitch/Main.java b/wpilibjExamples/src/main/java/org/wpilib/snippets/limitswitch/Main.java deleted file mode 100644 index 80f18e21f8..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/snippets/limitswitch/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.snippets.limitswitch; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/snippets/onboardimu/Main.java b/wpilibjExamples/src/main/java/org/wpilib/snippets/onboardimu/Main.java deleted file mode 100644 index 7c0b2c79d9..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/snippets/onboardimu/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.snippets.onboardimu; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/snippets/profiledpidfeedforward/Main.java b/wpilibjExamples/src/main/java/org/wpilib/snippets/profiledpidfeedforward/Main.java deleted file mode 100644 index b399211898..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/snippets/profiledpidfeedforward/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.snippets.profiledpidfeedforward; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/snippets/snippets.json b/wpilibjExamples/src/main/java/org/wpilib/snippets/snippets.json index 556af19525..de5a570ce3 100644 --- a/wpilibjExamples/src/main/java/org/wpilib/snippets/snippets.json +++ b/wpilibjExamples/src/main/java/org/wpilib/snippets/snippets.json @@ -8,7 +8,7 @@ ], "foldername": "encoder", "gradlebase": "java", - "mainclass": "Main" + "robotclass": "Robot" }, { "name": "DutyCycleEncoder", @@ -20,7 +20,7 @@ ], "foldername": "dutycycleencoder", "gradlebase": "java", - "mainclass": "Main" + "robotclass": "Robot" }, { "name": "AnalogEncoder", @@ -32,7 +32,7 @@ ], "foldername": "analogencoder", "gradlebase": "java", - "mainclass": "Main" + "robotclass": "Robot" }, { "name": "EncoderDrive", @@ -44,7 +44,7 @@ ], "foldername": "encoderdrive", "gradlebase": "java", - "mainclass": "Main" + "robotclass": "Robot" }, { "name": "EncoderHoming", @@ -56,7 +56,7 @@ ], "foldername": "encoderhoming", "gradlebase": "java", - "mainclass": "Main" + "robotclass": "Robot" }, { "name": "LimitSwitch", @@ -67,7 +67,7 @@ ], "foldername": "limitswitch", "gradlebase": "java", - "mainclass": "Main" + "robotclass": "Robot" }, { "name": "DigitalInput", @@ -78,7 +78,7 @@ ], "foldername": "digitalinput", "gradlebase": "java", - "mainclass": "Main" + "robotclass": "Robot" }, { "name": "AnalogInput", @@ -89,7 +89,7 @@ ], "foldername": "analoginput", "gradlebase": "java", - "mainclass": "Main" + "robotclass": "Robot" }, { "name": "AnalogPotentiometer", @@ -100,7 +100,7 @@ ], "foldername": "analogpotentiometer", "gradlebase": "java", - "mainclass": "Main" + "robotclass": "Robot" }, { "name": "AnalogAccelerometer", @@ -112,7 +112,7 @@ ], "foldername": "analogaccelerometer", "gradlebase": "java", - "mainclass": "Main" + "robotclass": "Robot" }, { "name": "AccelerometerCollisionDetection", @@ -124,7 +124,7 @@ ], "foldername": "accelerometercollision", "gradlebase": "java", - "mainclass": "Main" + "robotclass": "Robot" }, { "name": "AccelerometerFilter", @@ -136,7 +136,7 @@ ], "foldername": "accelerometerfilter", "gradlebase": "java", - "mainclass": "Main" + "robotclass": "Robot" }, { "name": "ADXLAccelerometers", @@ -147,7 +147,7 @@ ], "foldername": "adxlaccelerometers", "gradlebase": "java", - "mainclass": "Main" + "robotclass": "Robot" }, { "name": "OnboardIMU", @@ -159,7 +159,7 @@ ], "foldername": "onboardimu", "gradlebase": "java", - "mainclass": "Main" + "robotclass": "Robot" }, { "name": "ProfiledPIDFeedforward", @@ -170,6 +170,6 @@ ], "foldername": "profiledpidfeedforward", "gradlebase": "java", - "mainclass": "Robot" + "robotclass": "Robot" } ] diff --git a/wpilibjExamples/src/main/java/org/wpilib/templates/commandv2/Main.java b/wpilibjExamples/src/main/java/org/wpilib/templates/commandv2/Main.java deleted file mode 100644 index ef12656266..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/templates/commandv2/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.templates.commandv2; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/templates/commandv2skeleton/Main.java b/wpilibjExamples/src/main/java/org/wpilib/templates/commandv2skeleton/Main.java deleted file mode 100644 index fcba8ec175..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/templates/commandv2skeleton/Main.java +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.templates.commandv2skeleton; - -import org.wpilib.framework.RobotBase; - -public final class Main { - private Main() {} - - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/templates/educational/Main.java b/wpilibjExamples/src/main/java/org/wpilib/templates/educational/Main.java deleted file mode 100644 index 005ab473cd..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/templates/educational/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.templates.educational; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/templates/opmode/Main.java b/wpilibjExamples/src/main/java/org/wpilib/templates/opmode/Main.java deleted file mode 100644 index 04de054082..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/templates/opmode/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.templates.opmode; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/templates/robotbaseskeleton/Main.java b/wpilibjExamples/src/main/java/org/wpilib/templates/robotbaseskeleton/Main.java deleted file mode 100644 index 3f3601828a..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/templates/robotbaseskeleton/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.templates.robotbaseskeleton; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/templates/romicommandv2/Main.java b/wpilibjExamples/src/main/java/org/wpilib/templates/romicommandv2/Main.java deleted file mode 100644 index 996af74c15..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/templates/romicommandv2/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.templates.romicommandv2; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/templates/romieducational/Main.java b/wpilibjExamples/src/main/java/org/wpilib/templates/romieducational/Main.java deleted file mode 100644 index 3e816f899b..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/templates/romieducational/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.templates.romieducational; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/templates/romitimed/Main.java b/wpilibjExamples/src/main/java/org/wpilib/templates/romitimed/Main.java deleted file mode 100644 index f1c26a697a..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/templates/romitimed/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.templates.romitimed; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/templates/templates.json b/wpilibjExamples/src/main/java/org/wpilib/templates/templates.json index 6d6b4c606d..1f722369d2 100644 --- a/wpilibjExamples/src/main/java/org/wpilib/templates/templates.json +++ b/wpilibjExamples/src/main/java/org/wpilib/templates/templates.json @@ -7,7 +7,7 @@ ], "foldername": "commandv2", "gradlebase": "java", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2 }, { @@ -19,7 +19,7 @@ ], "foldername": "commandv2skeleton", "gradlebase": "java", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2 }, { @@ -30,7 +30,7 @@ ], "foldername": "opmode", "gradlebase": "java", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2 }, { @@ -41,7 +41,7 @@ ], "foldername": "timed", "gradlebase": "java", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2 }, { @@ -53,7 +53,7 @@ ], "foldername": "timedskeleton", "gradlebase": "java", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2 }, { @@ -64,7 +64,7 @@ ], "foldername": "timeslice", "gradlebase": "java", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2 }, { @@ -76,7 +76,7 @@ ], "foldername": "timesliceskeleton", "gradlebase": "java", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2 }, { @@ -88,7 +88,7 @@ ], "foldername": "robotbaseskeleton", "gradlebase": "java", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2 }, { @@ -100,7 +100,7 @@ ], "foldername": "romicommandv2", "gradlebase": "javaromi", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2, "extravendordeps": [ "romi" @@ -115,7 +115,7 @@ ], "foldername": "romitimed", "gradlebase": "javaromi", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2, "extravendordeps": [ "romi" @@ -130,7 +130,7 @@ ], "foldername": "xrpcommandv2", "gradlebase": "javaxrp", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2, "extravendordeps": [ "xrp" @@ -145,7 +145,7 @@ ], "foldername": "xrptimed", "gradlebase": "javaxrp", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2, "extravendordeps": [ "xrp" @@ -159,7 +159,7 @@ ], "foldername": "educational", "gradlebase": "java", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2 }, { @@ -171,7 +171,7 @@ ], "foldername": "romieducational", "gradlebase": "javaromi", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2, "extravendordeps": [ "romi" @@ -186,7 +186,7 @@ ], "foldername": "xrpeducational", "gradlebase": "javaxrp", - "mainclass": "Main", + "robotclass": "Robot", "commandversion": 2, "extravendordeps": [ "xrp" diff --git a/wpilibjExamples/src/main/java/org/wpilib/templates/timed/Main.java b/wpilibjExamples/src/main/java/org/wpilib/templates/timed/Main.java deleted file mode 100644 index 905fa85e2b..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/templates/timed/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.templates.timed; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/templates/timedskeleton/Main.java b/wpilibjExamples/src/main/java/org/wpilib/templates/timedskeleton/Main.java deleted file mode 100644 index d601d4d5f0..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/templates/timedskeleton/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.templates.timedskeleton; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/templates/timeslice/Main.java b/wpilibjExamples/src/main/java/org/wpilib/templates/timeslice/Main.java deleted file mode 100644 index bb06bc51aa..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/templates/timeslice/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.templates.timeslice; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/templates/timesliceskeleton/Main.java b/wpilibjExamples/src/main/java/org/wpilib/templates/timesliceskeleton/Main.java deleted file mode 100644 index 2fe4110143..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/templates/timesliceskeleton/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.templates.timesliceskeleton; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/templates/xrpcommandv2/Main.java b/wpilibjExamples/src/main/java/org/wpilib/templates/xrpcommandv2/Main.java deleted file mode 100644 index 6089c70914..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/templates/xrpcommandv2/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.templates.xrpcommandv2; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/templates/xrpeducational/Main.java b/wpilibjExamples/src/main/java/org/wpilib/templates/xrpeducational/Main.java deleted file mode 100644 index 5163f56954..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/templates/xrpeducational/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.templates.xrpeducational; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -} diff --git a/wpilibjExamples/src/main/java/org/wpilib/templates/xrptimed/Main.java b/wpilibjExamples/src/main/java/org/wpilib/templates/xrptimed/Main.java deleted file mode 100644 index 53ec8680f0..0000000000 --- a/wpilibjExamples/src/main/java/org/wpilib/templates/xrptimed/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package org.wpilib.templates.xrptimed; - -import org.wpilib.framework.RobotBase; - -/** - * Do NOT add any static variables to this class, or any initialization at all. Unless you know what - * you are doing, do not modify this file except to change the parameter class to the startRobot - * call. - */ -public final class Main { - private Main() {} - - /** - * Main initialization function. Do not perform any initialization here. - * - *

If you change your main robot class, change the parameter type. - */ - public static void main(String... args) { - RobotBase.startRobot(Robot::new); - } -}