mirror of
https://github.com/Team4388/2022NoWayHome.git
synced 2026-06-09 00:38:05 -06:00
38 lines
1.2 KiB
Java
38 lines
1.2 KiB
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 frc4388.robot;
|
|
|
|
|
|
import java.util.logging.Level;
|
|
import java.util.logging.Logger;
|
|
|
|
import com.diffplug.common.base.DurianPlugins;
|
|
import com.diffplug.common.base.Errors;
|
|
|
|
import edu.wpi.first.wpilibj.RobotBase;
|
|
import frc4388.utility.AnsiLogging;
|
|
|
|
/**
|
|
* 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.
|
|
*
|
|
* <p>If you change your main robot class, change the parameter type.
|
|
*/
|
|
public static void main(String... args) {
|
|
AnsiLogging.systemInstall();
|
|
DurianPlugins.register(Errors.Plugins.Log.class, e -> Logger.getLogger(e.getStackTrace()[0].getClassName().substring(e.getStackTrace()[0].getClassName().lastIndexOf('.') + 1)).log(Level.SEVERE, e, e::getLocalizedMessage));
|
|
RobotBase.startRobot(Robot::new);
|
|
}
|
|
}
|
|
|
|
// hi ryan -aarav |