mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-24 01:31:44 +00:00
UI 3d mode, ConfigManager bugfixes (#103)
* stupid bugs I guess idk where else to put this commit * Run spotless * Fix config file loading Splits load into own method * Run spotless
This commit is contained in:
@@ -34,10 +34,6 @@ import org.photonvision.vision.target.TargetModel;
|
||||
|
||||
public class ConfigTest {
|
||||
|
||||
static {
|
||||
TestUtils.loadLibraries();
|
||||
}
|
||||
|
||||
private static ConfigManager configMgr;
|
||||
private static final CameraConfiguration cameraConfig =
|
||||
new CameraConfiguration("TestCamera", "/dev/video420");
|
||||
@@ -48,6 +44,7 @@ public class ConfigTest {
|
||||
public static void init() {
|
||||
TestUtils.loadLibraries();
|
||||
configMgr = new ConfigManager(Path.of("testconfigdir"));
|
||||
configMgr.load();
|
||||
Logger.setLevel(LogGroup.General, LogLevel.TRACE);
|
||||
|
||||
REFLECTIVE_PIPELINE_SETTINGS = new ReflectivePipelineSettings();
|
||||
@@ -65,7 +62,7 @@ public class ConfigTest {
|
||||
|
||||
@Test
|
||||
@Order(1)
|
||||
public void serializeConfig() throws IOException {
|
||||
public void serializeConfig() {
|
||||
TestUtils.loadLibraries();
|
||||
|
||||
Logger.setLevel(LogGroup.General, LogLevel.TRACE);
|
||||
|
||||
Reference in New Issue
Block a user