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

Skip to content
Snippets Groups Projects
Commit ca18ec5c authored by Stefanos DOUMPOULAKIS's avatar Stefanos DOUMPOULAKIS
Browse files

Merge branch 'issue-338' into 'amdm2/develop'

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

See merge request !181
parents c00efbe8 b3310a8e
No related branches found
No related tags found
No related merge requests found
......@@ -54,16 +54,6 @@ namespace TUGraz.VectoCore.InputData.Reader.DataObjectAdapter
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)
{
var retVal = new AirdragData()
......
......@@ -108,8 +108,11 @@ namespace TUGraz.VectoCore.InputData.Reader.DataObjectAdapter
}:
new VehicleData.ADASData {
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
return new VehicleData.ADASData
{
EngineStopStart = adas.EngineStopStart,
EcoRoll = adas.EcoRoll,
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.
Finish editing this message first!
Please register or to comment