From ec0e7b502cece364309845811355683d9adf817c Mon Sep 17 00:00:00 2001 From: Markus Quaritsch <markus.quaritsch@tugraz.at> Date: Fri, 3 Jun 2022 09:22:42 +0200 Subject: [PATCH] disable look-ahead coasting for completed bus (specific and generic) --- .../DeclarationDataAdapterCompletedBusGeneric.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/VectoCore/VectoCore/InputData/Reader/DataObjectAdapter/DeclarationDataAdapterCompletedBusGeneric.cs b/VectoCore/VectoCore/InputData/Reader/DataObjectAdapter/DeclarationDataAdapterCompletedBusGeneric.cs index e96fd6c86e..8d8b4f2750 100644 --- a/VectoCore/VectoCore/InputData/Reader/DataObjectAdapter/DeclarationDataAdapterCompletedBusGeneric.cs +++ b/VectoCore/VectoCore/InputData/Reader/DataObjectAdapter/DeclarationDataAdapterCompletedBusGeneric.cs @@ -25,6 +25,14 @@ namespace TUGraz.VectoCore.InputData.Reader.DataObjectAdapter #region Overrides of DeclarationDataAdapterPrimaryBus + public override DriverData CreateDriverData() + { + var retVal = base.CreateDriverData(); + retVal.LookAheadCoasting.Enabled = false; + retVal.OverSpeed.Enabled = false; + return retVal; + } + public override VehicleData CreateVehicleData( IVehicleDeclarationInputData data, Segment segment, Mission mission, KeyValuePair<LoadingType, Tuple<Kilogram, double?>> loading, bool allowVocational) { -- GitLab