Code development platform for open source projects from the European Union institutions

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

bugfi eco-roll: calculation of accelerationPedalIdle - use P_fc-map...

bugfi eco-roll: calculation of accelerationPedalIdle - use P_fc-map (=totalTorqueDemand) and compare with drag power, not P_ice_out)

(cherry picked from commit 3db42eb2ce143f93d1e08fa091a818c181581df6)
parent da66055d
No related branches found
No related tags found
No related merge requests found
......@@ -133,7 +133,8 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
EcoRollState.PreviousBrakePower = Driver.DataBus.BrakePower;
if (retVal.Source is ICombustionEngine) {
var success = retVal as ResponseSuccess;
EcoRollState.AcceleratorPedalIdle = success.DragPower.IsEqual(success.EnginePowerRequest, 10.SI<Watt>());
var avgEngineSpeed = (success.EngineSpeed + Driver.DataBus.EngineSpeed) / 2.0;
EcoRollState.AcceleratorPedalIdle = success.DragPower.IsEqual(success.EngineTorqueDemandTotal * avgEngineSpeed, 10.SI<Watt>());
} else {
EcoRollState.AcceleratorPedalIdle = false;
}
......
......@@ -55,6 +55,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl {
return new ResponseDryRun {
DeltaFullLoad = 0.SI<Watt>(),
DeltaDragLoad = 0.SI<Watt>(),
EngineTorqueDemandTotal = 0.SI<NewtonMeter>(),
DeltaEngineSpeed = 0.RPMtoRad(),
EnginePowerRequest = 0.SI<Watt>(),
DynamicFullLoadPower = 0.SI<Watt>(),
......@@ -68,6 +69,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl {
return new ResponseSuccess() {
EnginePowerRequest = 0.SI<Watt>(),
DynamicFullLoadPower = 0.SI<Watt>(),
EngineTorqueDemandTotal = 0.SI<NewtonMeter>(),
DragPower = 0.SI<Watt>(),
AuxiliariesPowerDemand = 0.SI<Watt>(),
EngineSpeed = 0.RPMtoRad(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment