diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2025-08-07 16:22:43 +0300 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2025-08-07 16:22:43 +0300 |
| commit | 61bc5d6672a0dd3c7fd0f8e1a95d5c037fb20cab (patch) | |
| tree | 5963d8d118fd31e34de5d89463542ef4ccf56136 /Software/Visual_Studio/Tango.Telemetry | |
| parent | 8bbeffb422e8535c399f1eb76a55fdee5a1c65b6 (diff) | |
| download | Tango-61bc5d6672a0dd3c7fd0f8e1a95d5c037fb20cab.tar.gz Tango-61bc5d6672a0dd3c7fd0f8e1a95d5c037fb20cab.zip | |
Telemetry.
Diffstat (limited to 'Software/Visual_Studio/Tango.Telemetry')
3 files changed, 27 insertions, 5 deletions
diff --git a/Software/Visual_Studio/Tango.Telemetry/Mappers/JobRunMapper.cs b/Software/Visual_Studio/Tango.Telemetry/Mappers/JobRunMapper.cs index 4a08f9645..8d8023c95 100644 --- a/Software/Visual_Studio/Tango.Telemetry/Mappers/JobRunMapper.cs +++ b/Software/Visual_Studio/Tango.Telemetry/Mappers/JobRunMapper.cs @@ -79,10 +79,13 @@ namespace Tango.Telemetry.Mappers tRun.Thread = _rmls.FirstOrDefault(x => x.Guid == run.RmlGuid)?.FinalName; tRun.NumberOfUnits = Math.Max(run.NumberOfUnits, 1); + //Infer Number of Spools. + tRun.NumberOfSpools = run.MachineTypeEnum == MachineTypes.Eureka ? 4 : 1; + //What the user entered including white gaps leaving out spools and number of units. tRun.LogicalLength = run.JobLogicalLength; - //What the user entered talking into account white gaps, spools and number of units. + //What the user entered taking into account white gaps, spools and number of units. //(White gaps between units is not calculated here and is added further here when the JobFile is ready with the inter-segment length). tRun.ActualLength = (run.MachineTypeEnum == MachineTypes.Eureka ? run.JobLogicalLength * 4 : run.JobLogicalLength) * tRun.NumberOfUnits; diff --git a/Software/Visual_Studio/Tango.Telemetry/Telemetries/TelemetryJobRun.cs b/Software/Visual_Studio/Tango.Telemetry/Telemetries/TelemetryJobRun.cs index 502b6397f..883da2b8a 100644 --- a/Software/Visual_Studio/Tango.Telemetry/Telemetries/TelemetryJobRun.cs +++ b/Software/Visual_Studio/Tango.Telemetry/Telemetries/TelemetryJobRun.cs @@ -67,26 +67,43 @@ namespace Tango.Telemetry.Telemetries public String JobName { get; set; } public String Kind { get; set; } public String Thread { get; set; } - public int NumberOfUnits { get; set; } + public int NumberOfUnits { get; set; } // Minimum 1. public int InterSegmentLength { get; set; } public bool LubricationEnabled { get; set; } public int SpoolTypeDistribution { get; set; } public int NumberOfSpools { get; set; } + //What the user entered including white gaps leaving out and number of units and number of spools. public double LogicalLength { get; set; } + + //What the user entered, taking into account white gaps and number of units, all multiplied by the number of spools. public double ActualLength { get; set; } + + //The actual length the machine had ran, including white gaps, number of units and dryer buffer length, all multiplied by the number of spools. public double TotalLength { get; set; } + + //The position where the job started relative to the ActualLength (This will greater than zero only if we are resuming a jobrun that had stopped in the middle). public double StartPosition { get; set; } + + //The position where the job stopped relative to the ActualLength. public double EndPosition { get; set; } + + //EndPosition - StartPosition public double Distance { get; set; } public DateTime StartTime { get; set; } public DateTime EndTime { get; set; } + + //EndTime - StartTime public TimeSpan Duration { get; set; } + + //The time it took from the moment the user executed the job to the time it actually started dyeing. public TimeSpan HeatingDuration { get; set; } + //Completed/Failed,Aborted (By the user) public String Status { get; set; } + //Total quantities of ink dispensed during this run in nanoliters (better to display as cubic liter maybe). public long OutputCyan { get; set; } public long OutputMagenta { get; set; } public long OutputYellow { get; set; } @@ -105,6 +122,7 @@ namespace Tango.Telemetry.Telemetries public long OutputTransparent { get; set; } public long OutputLubricant { get; set; } + //The error that has occurred when Status = "Failed" public String FailureReason { get; set; } public String ApplicationVersion { get; set; } @@ -114,7 +132,8 @@ namespace Tango.Telemetry.Telemetries public VectorFineTuningRunModel FineTuning { get; set; } //Dynamic - public ProcessParameters ProcessParameters { get; set; } //Dynamic + //ProcessParamaters.DyeingSpeed = The speed in which the machine is dyeing the thread in centimeters per second. + public ProcessParameters ProcessParameters { get; set; } public TelemetryJobRun() { diff --git a/Software/Visual_Studio/Tango.Telemetry/TelemetryPublishPackage.cs b/Software/Visual_Studio/Tango.Telemetry/TelemetryPublishPackage.cs index b008a210f..2e7a43361 100644 --- a/Software/Visual_Studio/Tango.Telemetry/TelemetryPublishPackage.cs +++ b/Software/Visual_Studio/Tango.Telemetry/TelemetryPublishPackage.cs @@ -19,8 +19,8 @@ namespace Tango.Telemetry public String Environment { get; set; } public String SerialNumber { get; set; } public String MachineType { get; set; } - public String Organization { get; internal set; } - public String Site { get; internal set; } + public String Organization { get; set; } + public String Site { get; set; } public String TelemetryName { get; internal set; } public int TelemetryVersion { get; internal set; } |
