Completed axis thermo read (to check...)
This commit is contained in:
@@ -131,19 +131,6 @@ namespace CMS_CORE_Library.Models
|
||||
return base.GetHashCode();
|
||||
}
|
||||
|
||||
#if false
|
||||
/// <summary>
|
||||
/// Deserializzazione da byte ad oggetto AxisRT
|
||||
/// </summary>
|
||||
/// <param name="rawData"></param>
|
||||
public AxisRT(int currId, double currPosition, double currSpeed, double currLoad)
|
||||
{
|
||||
Id = currId;
|
||||
Position = currPosition;
|
||||
Speed = currSpeed;
|
||||
Load = currLoad;
|
||||
}
|
||||
#endif
|
||||
/// <summary>
|
||||
/// Deserializzazione da byte ad oggetto AxisRT
|
||||
/// </summary>
|
||||
@@ -152,7 +139,6 @@ namespace CMS_CORE_Library.Models
|
||||
{
|
||||
// converto i dati da byte grezzi ai 3 componenti...
|
||||
Id = currId;
|
||||
//Id = S7.Net.Types.Int.FromByteArray(rawData.Skip(0).Take(2).ToArray());
|
||||
Position = S7.Net.Types.Double.FromByteArray(rawData.Skip(0).Take(4).ToArray());
|
||||
Speed = S7.Net.Types.Double.FromByteArray(rawData.Skip(4).Take(4).ToArray());
|
||||
Load = S7.Net.Types.Double.FromByteArray(rawData.Skip(8).Take(4).ToArray());
|
||||
|
||||
Reference in New Issue
Block a user