aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Telemetry
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2025-08-21 16:49:02 +0300
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2025-08-21 16:49:02 +0300
commit3d8c362cd5409246c7026ea956ce10d51ed9ebc3 (patch)
treed5ab6ab53d4b461df12c8b9d1edeb654e0cb48de /Software/Visual_Studio/Tango.Telemetry
parentcc556a1c4a0813a548bf95d693c4e2748f895e13 (diff)
downloadTango-3d8c362cd5409246c7026ea956ce10d51ed9ebc3.tar.gz
Tango-3d8c362cd5409246c7026ea956ce10d51ed9ebc3.zip
Telemetry Wires.
Implemented Firmware User Notifications. Added Missing UI Settings Units Display. Add Machine Name to General Information Dialog.
Diffstat (limited to 'Software/Visual_Studio/Tango.Telemetry')
-rw-r--r--Software/Visual_Studio/Tango.Telemetry/Sources/TelemetryWireStreamingSource.cs3
-rw-r--r--Software/Visual_Studio/Tango.Telemetry/Telemetries/TelemetryWire.cs13
2 files changed, 13 insertions, 3 deletions
diff --git a/Software/Visual_Studio/Tango.Telemetry/Sources/TelemetryWireStreamingSource.cs b/Software/Visual_Studio/Tango.Telemetry/Sources/TelemetryWireStreamingSource.cs
index 41ac42324..91585fff2 100644
--- a/Software/Visual_Studio/Tango.Telemetry/Sources/TelemetryWireStreamingSource.cs
+++ b/Software/Visual_Studio/Tango.Telemetry/Sources/TelemetryWireStreamingSource.cs
@@ -52,8 +52,7 @@ namespace Tango.Telemetry.Sources
{
ID = String.Empty,
Time = DateTime.UtcNow,
- Name = e.Name,
- Value = e.Value
+ Wires = e.Wires.Select(x => new Wire() { Name = x.Name, Value = x.Value }).ToList()
}
});
}
diff --git a/Software/Visual_Studio/Tango.Telemetry/Telemetries/TelemetryWire.cs b/Software/Visual_Studio/Tango.Telemetry/Telemetries/TelemetryWire.cs
index 5b3d82fbc..ef6d67675 100644
--- a/Software/Visual_Studio/Tango.Telemetry/Telemetries/TelemetryWire.cs
+++ b/Software/Visual_Studio/Tango.Telemetry/Telemetries/TelemetryWire.cs
@@ -6,9 +6,20 @@ using System.Threading.Tasks;
namespace Tango.Telemetry.Telemetries
{
- public class TelemetryWire : TelemetryBase
+ public class Wire
{
public String Name { get; set; }
public double Value { get; set; }
}
+
+ [TelemetryName("Wire", 1)]
+ public class TelemetryWire : TelemetryBase
+ {
+ public List<Wire> Wires { get; set; }
+
+ public TelemetryWire()
+ {
+ Wires = new List<Wire>();
+ }
+ }
}