Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS will be completely phased out by mid-2025. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit be81fe8c authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

adding highway flag to cycle reader

parent 0b25d836
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
......@@ -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>
......
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