diff --git a/VectoCore/VectoCore/InputData/Reader/ComponentData/DrivingCycleDataReader.cs b/VectoCore/VectoCore/InputData/Reader/ComponentData/DrivingCycleDataReader.cs index a67b9bd23d164948a92965aff5805dd80c10d111..3ecbf0a4a4cc45061301aef8450a1fb578825030 100644 --- a/VectoCore/VectoCore/InputData/Reader/ComponentData/DrivingCycleDataReader.cs +++ b/VectoCore/VectoCore/InputData/Reader/ComponentData/DrivingCycleDataReader.cs @@ -344,6 +344,7 @@ namespace TUGraz.VectoCore.InputData.Reader.ComponentData public const string EngineTorque = "Me"; public const string TorqueConverterActive = "tc_active"; public const string PTOActive = "PTO"; + public const string Highway = "HW"; } #region DataParser @@ -433,7 +434,8 @@ namespace TUGraz.VectoCore.InputData.Reader.ComponentData crossWindRequired ? row.ParseDouble(Fields.AirSpeedRelativeToVehicle).KMPHtoMeterPerSecond() : null, WindYawAngle = crossWindRequired ? row.ParseDoubleOrGetDefault(Fields.WindYawAngle) : 0, AuxiliarySupplyPower = row.GetAuxiliaries(), - PTOActive = table.Columns.Contains(Fields.PTOActive) && row.Field<string>(Fields.PTOActive) == "1" + PTOActive = table.Columns.Contains(Fields.PTOActive) && row.Field<string>(Fields.PTOActive) == "1", + Highway = table.Columns.Contains(Fields.Highway) && row.Field<string>(Fields.Highway) == "1" }); } @@ -453,7 +455,8 @@ namespace TUGraz.VectoCore.InputData.Reader.ComponentData Fields.RoadGradient, Fields.AirSpeedRelativeToVehicle, Fields.WindYawAngle, - Fields.PTOActive + Fields.PTOActive, + Fields.Highway, }; const bool allowAux = true; diff --git a/VectoCore/VectoCore/Models/SimulationComponent/Data/DrivingCycleData.cs b/VectoCore/VectoCore/Models/SimulationComponent/Data/DrivingCycleData.cs index 523c879b7a41e2e9d2c2a606242453246b7c79d7..a1a86308d60df681489958254b4df4e09829c623 100644 --- a/VectoCore/VectoCore/Models/SimulationComponent/Data/DrivingCycleData.cs +++ b/VectoCore/VectoCore/Models/SimulationComponent/Data/DrivingCycleData.cs @@ -178,6 +178,11 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Data /// </summary> public Meter Altitude; + /// <summary> + /// this section of the cycle is considered to be highway driving (used for PCC atm) + /// </summary> + public bool Highway; + /// <summary> /// Required for distance-based cycles. Not used in time based cycles. "stop" defines the time the vehicle spends in stop phases. /// </summary>