COmpletata gestione dll core assi thermo

This commit is contained in:
Samuele Locatelli
2020-09-23 20:03:11 +02:00
parent 147b84ab19
commit ffd24f2539
2 changed files with 12 additions and 13 deletions
@@ -58,6 +58,16 @@ namespace Thermo.Active.Model.DTOModels.ThAxes
if (name != item.name)
return false;
if (Math.Round(Math.Abs(position - item.position), 3) >= Constants.EPSILON)
return false;
if (Math.Round(Math.Abs(speed - item.speed), 3) >= Constants.EPSILON)
return false;
if (Math.Round(Math.Abs(load - item.load), 3) >= Constants.EPSILON)
return false;
#if false
if (position != item.position)
return false;
@@ -65,7 +75,8 @@ namespace Thermo.Active.Model.DTOModels.ThAxes
return false;
if (load != item.load)
return false;
return false;
#endif
if (errorCode != item.errorCode)
return false;
@@ -464,18 +464,6 @@ namespace Thermo.Active.Listeners.SignalR
var context = GlobalHost.ConnectionManager.GetHubContext<NcHub>();
context.Clients.Group("ncData").axisInfo(diffData);
}
#if false
if (!LastAxisInfoData.Equals(currInfoAxes))
{
LastAxisInfoData = currInfoAxes;
var context = GlobalHost.ConnectionManager.GetHubContext<NcHub>();
// fare confronto 1:1 --> se variato --> invio (come SendThermoRecipeFullData)
context.Clients.Group("ncData").axisInfo(currInfoAxes);
}
#endif
}
public static void SetGatewayRebootStatus(object status)