Add CalibrationValue Output

This commit is contained in:
Glax 2024-01-02 22:26:41 +01:00
parent ba98212b5c
commit 4215cc0cdc

View File

@ -35,13 +35,15 @@ public partial class OSCCollar
layout["Variable-Values"].Update(variableTable);
layout["Position"].Update(new Panel(new Text(GetCoordinateSystem())));
variableTable.AddRow("Status", $"{(_allowMoving ? "enabled" : "disabled")}");
variableTable.AddRow("GPS 1", $"{_gps1.Distance:00.00000}");
variableTable.AddRow("GPS 2", $"{_gps2.Distance:00.00000}");
variableTable.AddRow("GPS 3", $"{_gps3.Distance:00.00000}");
variableTable.AddRow("Position Vector", $"{_unitVectorLeash}");
variableTable.AddRow("Leash Stretch", $"{_leashStretch:0.00000}");
variableTable.AddRow("Movement Vector", $"{_movementVector}");
variableTable.AddRow("Status", "");
variableTable.AddRow("GPS 1", "");
variableTable.AddRow("GPS 2", "");
variableTable.AddRow("GPS 3", "");
variableTable.AddRow("Position Vector", "");
variableTable.AddRow("Leash Stretch", "");
variableTable.AddRow("Movement Vector", "");
variableTable.AddRow("CalibrationX", "");
variableTable.AddRow("CalibrationY", "");
AnsiConsole.Live(layout).StartAsync(async displayContext =>
{
@ -54,6 +56,8 @@ public partial class OSCCollar
variableTable.Rows.Update(4, 1, new Text($"{_unitVectorLeash}"));
variableTable.Rows.Update(5, 1, new Text($"{_leashStretch:0.00000}"));
variableTable.Rows.Update(6, 1, new Text($"{_movementVector}"));
variableTable.Rows.Update(7, 1, new Text($"{GetCalibrationValues().Item1}"));
variableTable.Rows.Update(8, 1, new Text($"{GetCalibrationValues().Item2}"));
layout["Position"].Update(new Panel(new Text(GetCoordinateSystem())));
displayContext.Refresh();
await Task.Delay(100);