Files
2022NoWayHome/src/main/java/frc4388/robot/Main.java
T

38 lines
1.2 KiB
Java
Raw Normal View History

2022-01-11 11:54:44 -07:00
// 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.
2021-11-15 16:26:16 -07:00
package frc4388.robot;
2022-02-11 18:53:13 -07:00
import java.util.logging.Level;
import java.util.logging.Logger;
import com.diffplug.common.base.DurianPlugins;
import com.diffplug.common.base.Errors;
2021-11-15 16:26:16 -07:00
import edu.wpi.first.wpilibj.RobotBase;
import frc4388.utility.AnsiLogging;
2021-11-15 16:26:16 -07:00
/**
* 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();
2022-02-25 01:33:32 -07:00
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));
2021-11-15 16:26:16 -07:00
RobotBase.startRobot(Robot::new);
}
}
2022-01-14 17:48:53 -07:00
2022-02-17 19:52:05 -07:00
// hi ryan -aarav