mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
#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.
21 lines
563 B
Java
21 lines
563 B
Java
// 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 wpilib.robot;
|
|
|
|
import org.wpilib.framework.RobotBase;
|
|
|
|
public final class Main {
|
|
private Main() {}
|
|
|
|
/**
|
|
* Main initialization function. Do not perform any initialization here.
|
|
*
|
|
* <p>If you change your main robot class, change the parameter type.
|
|
*/
|
|
public static void main(String... args) {
|
|
RobotBase.startRobot(Robot.class);
|
|
}
|
|
}
|