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 ae58ac32 authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

bugfix: condition eco roll available in PCC preprocessor

parent cd4e7612
Branches
Tags
No related merge requests found
......@@ -35,7 +35,7 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl {
var engineDrag = runData.EngineData.FullLoadCurves[0].FullLoadEntries
.Average(x => (x.EngineSpeed * x.TorqueDrag).Value()).SI<Watt>();
var slopeEngineDrag = runData.VehicleData.ADAS.EcoRoll == EcoRollType.WithEngineStop
var slopeEngineDrag = runData.VehicleData.ADAS.EcoRoll != EcoRollType.None
? 0
: (engineDrag / Physics.GravityAccelleration / runData.VehicleData.TotalVehicleWeight).Value();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment