Add CalibrationValue Output
This commit is contained in:
parent
ba98212b5c
commit
4215cc0cdc
@ -35,13 +35,15 @@ public partial class OSCCollar
|
|||||||
layout["Variable-Values"].Update(variableTable);
|
layout["Variable-Values"].Update(variableTable);
|
||||||
layout["Position"].Update(new Panel(new Text(GetCoordinateSystem())));
|
layout["Position"].Update(new Panel(new Text(GetCoordinateSystem())));
|
||||||
|
|
||||||
variableTable.AddRow("Status", $"{(_allowMoving ? "enabled" : "disabled")}");
|
variableTable.AddRow("Status", "");
|
||||||
variableTable.AddRow("GPS 1", $"{_gps1.Distance:00.00000}");
|
variableTable.AddRow("GPS 1", "");
|
||||||
variableTable.AddRow("GPS 2", $"{_gps2.Distance:00.00000}");
|
variableTable.AddRow("GPS 2", "");
|
||||||
variableTable.AddRow("GPS 3", $"{_gps3.Distance:00.00000}");
|
variableTable.AddRow("GPS 3", "");
|
||||||
variableTable.AddRow("Position Vector", $"{_unitVectorLeash}");
|
variableTable.AddRow("Position Vector", "");
|
||||||
variableTable.AddRow("Leash Stretch", $"{_leashStretch:0.00000}");
|
variableTable.AddRow("Leash Stretch", "");
|
||||||
variableTable.AddRow("Movement Vector", $"{_movementVector}");
|
variableTable.AddRow("Movement Vector", "");
|
||||||
|
variableTable.AddRow("CalibrationX", "");
|
||||||
|
variableTable.AddRow("CalibrationY", "");
|
||||||
|
|
||||||
AnsiConsole.Live(layout).StartAsync(async displayContext =>
|
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(4, 1, new Text($"{_unitVectorLeash}"));
|
||||||
variableTable.Rows.Update(5, 1, new Text($"{_leashStretch:0.00000}"));
|
variableTable.Rows.Update(5, 1, new Text($"{_leashStretch:0.00000}"));
|
||||||
variableTable.Rows.Update(6, 1, new Text($"{_movementVector}"));
|
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())));
|
layout["Position"].Update(new Panel(new Text(GetCoordinateSystem())));
|
||||||
displayContext.Refresh();
|
displayContext.Refresh();
|
||||||
await Task.Delay(100);
|
await Task.Delay(100);
|
||||||
|
Loading…
Reference in New Issue
Block a user