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 b3310a8e authored by Stefanos Doumpoulakis's avatar Stefanos Doumpoulakis
Browse files

fix #338: eco roll set to 'none' in special case

Porting fix from version 3, where:
Eco roll without engine stop and no predictive cruise control should be
treated as no eco roll.
parent c00efbe8
Branches
Tags
No related merge requests found
...@@ -54,16 +54,6 @@ namespace TUGraz.VectoCore.InputData.Reader.DataObjectAdapter ...@@ -54,16 +54,6 @@ namespace TUGraz.VectoCore.InputData.Reader.DataObjectAdapter
public abstract class AbstractSimulationDataAdapter : LoggingObject public abstract class AbstractSimulationDataAdapter : LoggingObject
{ {
// ========================= // =========================
protected VehicleData.ADASData CreateADAS(IAdvancedDriverAssistantSystemDeclarationInputData adas)
{
return new VehicleData.ADASData
{
EngineStopStart = adas.EngineStopStart,
EcoRoll = adas.EcoRoll,
PredictiveCruiseControl = adas.PredictiveCruiseControl,
InputData = adas
};
}
internal AirdragData SetCommonAirdragData(IAirdragDeclarationInputData data) internal AirdragData SetCommonAirdragData(IAirdragDeclarationInputData data)
{ {
var retVal = new AirdragData() var retVal = new AirdragData()
......
...@@ -108,8 +108,11 @@ namespace TUGraz.VectoCore.InputData.Reader.DataObjectAdapter ...@@ -108,8 +108,11 @@ namespace TUGraz.VectoCore.InputData.Reader.DataObjectAdapter
}: }:
new VehicleData.ADASData { new VehicleData.ADASData {
EngineStopStart = adas.EngineStopStart, EngineStopStart = adas.EngineStopStart,
EcoRoll = adas.EcoRoll, PredictiveCruiseControl = adas.PredictiveCruiseControl,
PredictiveCruiseControl = adas.PredictiveCruiseControl EcoRoll = ((adas.PredictiveCruiseControl == PredictiveCruiseControlType.None)
&& adas.EcoRoll.WithoutEngineStop())
? EcoRollType.None
: adas.EcoRoll,
}; };
} }
......
...@@ -12,9 +12,12 @@ namespace TUGraz.VectoCore.InputData.Reader.DataObjectAdapter.SimulationComponen ...@@ -12,9 +12,12 @@ namespace TUGraz.VectoCore.InputData.Reader.DataObjectAdapter.SimulationComponen
return new VehicleData.ADASData return new VehicleData.ADASData
{ {
EngineStopStart = adas.EngineStopStart, EngineStopStart = adas.EngineStopStart,
EcoRoll = adas.EcoRoll,
PredictiveCruiseControl = adas.PredictiveCruiseControl, PredictiveCruiseControl = adas.PredictiveCruiseControl,
InputData = adas InputData = adas,
EcoRoll = ((adas.PredictiveCruiseControl == PredictiveCruiseControlType.None)
&& adas.EcoRoll.WithoutEngineStop())
? EcoRollType.None
: adas.EcoRoll,
}; };
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment