COmpletata gestione dll core assi thermo
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user