Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 183610e0 authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

response contains engine speed

parent 948cdc04
No related branches found
No related tags found
No related merge requests found
......@@ -47,6 +47,8 @@ namespace TUGraz.VectoCore.Models.Connector.Ports
Watt BrakePower { get; set; }
PerSecond EngineSpeed { get; set; }
Second AbsTime { get; set; }
}
}
\ No newline at end of file
......@@ -47,6 +47,8 @@ namespace TUGraz.VectoCore.Models.Connector.Ports.Impl
public Second AbsTime { get; set; }
public PerSecond EngineSpeed { get; set; }
public object Source { get; set; }
public override string ToString()
......
......@@ -196,6 +196,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
DeltaDragLoad = deltaDrag * avgEngineSpeed,
EnginePowerRequest = torqueOut * avgEngineSpeed,
AuxiliariesPowerDemand = auxTorqueDemand * avgEngineSpeed,
EngineSpeed = angularVelocity,
};
}
......@@ -232,6 +233,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
EnginePowerRequest = totalTorqueDemand * avgEngineSpeed,
Source = this,
AuxiliariesPowerDemand = auxTorqueDemand * avgEngineSpeed,
EngineSpeed = angularVelocity,
};
}
......@@ -244,6 +246,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
EnginePowerRequest = totalTorqueDemand * avgEngineSpeed,
Source = this,
AuxiliariesPowerDemand = auxTorqueDemand * avgEngineSpeed,
EngineSpeed = angularVelocity,
};
}
......@@ -252,6 +255,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
return new ResponseSuccess {
EnginePowerRequest = totalTorqueDemand * avgEngineSpeed,
AuxiliariesPowerDemand = auxTorqueDemand * avgEngineSpeed,
EngineSpeed = angularVelocity
};
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment