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 f3af9262 authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

bugfix medium lorry vtp: use mission dependent whtc correction factors (LH for...

bugfix medium lorry vtp: use mission dependent whtc correction factors (LH for heavy lorries, RD for medium lorries)
parent 51ca4f26
No related branches found
No related tags found
No related merge requests found
......@@ -128,12 +128,17 @@ namespace TUGraz.VectoCore.InputData.Reader.Impl
var tempVehicle = Dao.CreateVehicleData(
vehicle, Segment.Missions.First(),
Segment.Missions.First().Loadings.First());
var vtpMission = Segment.VehicleClass.IsMediumLorry()
? DeclarationData.VTPMode.SelectedMissionMediumLorry
: DeclarationData.VTPMode.SelectedMissionHeavyLorry;
AirdragData = Dao.CreateAirdragData(
vehicle.Components.AirdragInputData,
Segment.Missions.First(), Segment);
EngineData = Dao.CreateEngineData(
vehicle, vehicle.Components.EngineInputData.EngineModes.First(),
new Mission() { MissionType = MissionType.LongHaul });
new Mission() { MissionType = vtpMission });
AxlegearData = JobInputData.Vehicle.Components.GearboxInputData.DifferentialIncluded
? Dao.CreateDummyAxleGearData(JobInputData.Vehicle.Components.GearboxInputData)
: Dao.CreateAxleGearData(vehicle.Components.AxleGearInputData);
......
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