aboutsummaryrefslogtreecommitdiffstats
path: root/Software
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2020-11-09 02:00:42 +0200
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2020-11-09 02:00:42 +0200
commit8bcd08cf4053ad4e47247f08677df16c274cdfd1 (patch)
treea01810bc8c846f13c03e94d04b267037bf72a1ee /Software
parent72a323fc0449a362919428958c6f95f6901301e8 (diff)
downloadTango-8bcd08cf4053ad4e47247f08677df16c274cdfd1.tar.gz
Tango-8bcd08cf4053ad4e47247f08677df16c274cdfd1.zip
Readiness for TI threshold.
Diffstat (limited to 'Software')
-rw-r--r--Software/Visual_Studio/Tango.BL/Dispensing/TransparentLiquidDispensingCalc.cs16
1 files changed, 9 insertions, 7 deletions
diff --git a/Software/Visual_Studio/Tango.BL/Dispensing/TransparentLiquidDispensingCalc.cs b/Software/Visual_Studio/Tango.BL/Dispensing/TransparentLiquidDispensingCalc.cs
index 40a716c13..2340cdd62 100644
--- a/Software/Visual_Studio/Tango.BL/Dispensing/TransparentLiquidDispensingCalc.cs
+++ b/Software/Visual_Studio/Tango.BL/Dispensing/TransparentLiquidDispensingCalc.cs
@@ -25,10 +25,15 @@ namespace Tango.BL.Dispensing
if (liquidVolume.Configuration != null && liquidVolume.RML != null && liquidVolume.ProcessParametersTable != null)
{
double nlPcmSum = liquidVolume.BrushStop.LiquidVolumes.Where(x => (IdsPackFormulas)x.IdsPack.IdsPackFormula.Code == IdsPackFormulas.StandardColor).Sum(x => x.NanoliterPerCentimeter);
- double minInkUptake = liquidVolume.ProcessParametersTable.MinInkUptake;
- double virtual_volume = Math.Max(0, minInkUptake - nlPcmSum);
- return virtual_volume;
- //(liquidVolume.Volume / 100d) * (Math.Min(liquidVolume.LiquidMaxNanoliterPerCentimeter, liquidVolume.ProcessParametersTable.MinInkUptake));
+
+ nlPcmSum = Math.Max(0, liquidVolume.ProcessParametersTable.MinInkUptake - nlPcmSum);
+
+ //if (liquidVolume.RML.ColorConversionVersion > 3)
+ //{
+ // nlPcmSum = nlPcmSum <= 0.5 ? 0 : nlPcmSum;
+ //}
+
+ return nlPcmSum;
}
else
{
@@ -45,9 +50,6 @@ namespace Tango.BL.Dispensing
{
if (liquidVolume.ProcessParametersTable != null)
{
- //double nlPcmSum = liquidVolume.BrushStop.LiquidVolumes.Where(x => (IdsPackFormulas)x.IdsPack.IdsPackFormula.Code == IdsPackFormulas.StandardColor).Sum(x => x.NanoliterPerCentimeter);
- //double minInkUptake = liquidVolume.ProcessParametersTable.MinInkUptake;
- //double volume = ((liquidVolume.LiquidMaxNanoliterPerCentimeter - nlPcmSum) / liquidVolume.LiquidMaxNanoliterPerCentimeter) * 100d;
return Math.Max(100d - liquidVolume.BrushStop.LiquidVolumes.Where(x => (IdsPackFormulas)x.IdsPack.IdsPackFormula.Code == IdsPackFormulas.StandardColor).Sum(x => x.Volume), 0);
}
else