diff --git a/OSCCollar/OSCCollar.cs b/OSCCollar/OSCCollar.cs index 4b8fcf6..4fee5c5 100644 --- a/OSCCollar/OSCCollar.cs +++ b/OSCCollar/OSCCollar.cs @@ -15,9 +15,9 @@ public class OSCCollar string ip = jObject.GetValue("ip")?.ToObject() ?? "127.0.0.1"; int portReceive = jObject.GetValue("portReceive")?.ToObject() ?? 9001; int portSend = jObject.GetValue("portReceive")?.ToObject() ?? 9000; - double radius = jObject.GetValue("radius")?.ToObject() ?? 100; - double calibrationX = jObject.GetValue("calibrationX")?.ToObject() ?? 0; - double calibrationY = jObject.GetValue("calibrationY")?.ToObject() ?? 0; + double radius = jObject.GetValue("radius")?.ToObject() ?? 100; + double calibrationX = jObject.GetValue("calibrationX")?.ToObject() ?? 0; + double calibrationY = jObject.GetValue("calibrationY")?.ToObject() ?? 0; bool skipSetup = jObject.GetValue("skipSetup")?.ToObject() ?? true; var _ = new OSCCollar(ip, portReceive, portSend, radius, calibrationX, calibrationY, skipSetup); }else @@ -93,14 +93,14 @@ public class OSCCollar Console.ForegroundColor = ConsoleColor.White; Console.WriteLine($"OSC Collar - Status: {(_allowMoving ? "enabled" : "disabled")}"); Console.WriteLine("=============================="); - Console.WriteLine($"GPS 1:................{GPS1.Distance:0.000000}"); - Console.WriteLine($"GPS 2:................{GPS2.Distance:0.000000}"); - Console.WriteLine($"GPS 3:................{GPS3.Distance:0.000000}"); - Console.WriteLine($"Position X:.........{_posX:'.'0.00000;'-'0.00000}"); - Console.WriteLine($"Position Y:.........{_posY:'.'0.00000;'-'0.00000}"); - Console.WriteLine($"Stretch:..............{_leashStretch:0.00000}"); - Console.WriteLine($"Vertical Movement:..{verticalMovement:' '0.00000;'-'0.00000}"); - Console.WriteLine($"Horizontal Movement:.{horizontalMovement:' '0.00000;'-'0.00000}"); + Console.WriteLine($"GPS 1:................{GPS1.Distance:00.00000}"); + Console.WriteLine($"GPS 2:................{GPS2.Distance:00.00000}"); + Console.WriteLine($"GPS 3:................{GPS3.Distance:0.00000}"); + Console.WriteLine($"Position X:..........{_posX:'.'0.00000;'-'0.00000}"); + Console.WriteLine($"Position Y:..........{_posY:'.'0.00000;'-'0.00000}"); + Console.WriteLine($"Stretch:...............{_leashStretch:0.00000}"); + Console.WriteLine($"Vertical Movement:...{verticalMovement:' '0.00000;'-'0.00000}"); + Console.WriteLine($"Horizontal Movement:..{horizontalMovement:' '0.00000;'-'0.00000}"); string nilString = $"/input nil {_nilSent}"; Console.SetCursorPosition(Console.WindowWidth - nilString.Length - 1, 0); Console.Write(nilString);