diff --git a/OSCCollar/OSCCollar.cs b/OSCCollar/OSCCollar.cs index 810d48f..738295b 100644 --- a/OSCCollar/OSCCollar.cs +++ b/OSCCollar/OSCCollar.cs @@ -27,7 +27,10 @@ public class OSCCollar var _ = new OSCCollar(); } } - + + private readonly string _ip; + private readonly int _portReceive, _portSend; + private OscServer Server { get; init; } private OscClient Client { get; init; } private float _leashStretch; @@ -56,6 +59,9 @@ public class OSCCollar private OSCCollar(string ip = "127.0.0.1", int portReceive = 9001, int portSend = 9000, double radius = 100, double calibrationX = 0, double calibrationY = 0, double walkStretch = 0.1, double runStretch = 0.4, bool skipSetup = true) { + this._ip = ip; + this._portReceive = portReceive; + this._portSend = portSend; this._walkStretch = walkStretch; this._runStretch = runStretch; this._radius = radius; @@ -97,7 +103,7 @@ public class OSCCollar { Console.Clear(); Console.ForegroundColor = ConsoleColor.White; - Console.WriteLine($"OSC Collar - Status: {(_allowMoving ? "enabled" : "disabled")}"); + Console.WriteLine($"OSC Collar - Status: {(_allowMoving ? "enabled" : "disabled")} IP: {_ip} Send: {_portSend} Receive: {_portReceive}"); Console.WriteLine("=============================="); Console.WriteLine($"GPS 1:................{GPS1.Distance:00.00000}"); Console.WriteLine($"GPS 2:................{GPS2.Distance:00.00000}");