mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-20 00:51:41 +00:00
Various cleanup, slowed down UI FPS counter
This commit is contained in:
@@ -12,23 +12,21 @@ import java.io.FileWriter;
|
||||
import java.io.IOException;
|
||||
import java.nio.file.Path;
|
||||
import java.nio.file.Paths;
|
||||
import java.util.HashMap;
|
||||
|
||||
public class SettingsManager {
|
||||
public static final Path SettingsPath = Paths.get(System.getProperty("user.dir"), "Settings");
|
||||
public static com.chameleonvision.vision.GeneralSettings GeneralSettings;
|
||||
public static HashMap<String, Integer> CameraPorts = new HashMap<>();
|
||||
|
||||
private SettingsManager() {}
|
||||
|
||||
public static void initialize() {
|
||||
initGeneralSettings();
|
||||
NetworkSettings netSettings = new NetworkSettings();
|
||||
netSettings.hostname=GeneralSettings.hostname;
|
||||
netSettings.gateway=GeneralSettings.gateway;
|
||||
netSettings.netmask=GeneralSettings.netmask;
|
||||
netSettings.connectionType=GeneralSettings.connection_type;
|
||||
netSettings.ip=GeneralSettings.ip;
|
||||
netSettings.hostname = GeneralSettings.hostname;
|
||||
netSettings.gateway = GeneralSettings.gateway;
|
||||
netSettings.netmask = GeneralSettings.netmask;
|
||||
netSettings.connectionType = GeneralSettings.connection_type;
|
||||
netSettings.ip = GeneralSettings.ip;
|
||||
netSettings.run();
|
||||
|
||||
var allCameras = CameraManager.getAllCamerasByName();
|
||||
|
||||
Reference in New Issue
Block a user