Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

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

Merge branch 'fix/steering_technology_auxform' into 'amdm2/develop'

Fix correct vehicle type assignation for electric steering pumps

See merge request vecto/vecto!167
parents ff7f666f 7d2e849c
No related branches found
No related tags found
No related merge requests found
...@@ -72,16 +72,20 @@ Public Class VehicleAuxiliariesDialog ...@@ -72,16 +72,20 @@ Public Class VehicleAuxiliariesDialog
If CbType.SelectedItem Is Nothing Then Exit Sub If CbType.SelectedItem Is Nothing Then Exit Sub
dim batteryElectricAuxOnly = JobType.IsOneOf(VectoSimulationJobType.BatteryElectricVehicle, VectoSimulationJobType.IEPC_E)
Select Case CbType.SelectedValue.ToString() Select Case CbType.SelectedValue.ToString()
Case VectoCore.Configuration.Constants.Auxiliaries.IDs.Fan Case VectoCore.Configuration.Constants.Auxiliaries.IDs.Fan
CbTech.DataSource = CbTech.DataSource =
if(batteryElectricAuxOnly, DeclarationData.Fan.FullyElectricTechnologies(), DeclarationData.Fan.GetTechnologies()).Select(Function(x) New With {.Caption = x, .Value = x}).ToArray() DeclarationData.Fan.GetTechnologies().Select(Function(x) New With {.Caption = x, .Value = x}).ToArray()
Case VectoCore.Configuration.Constants.Auxiliaries.IDs.SteeringPump Case VectoCore.Configuration.Constants.Auxiliaries.IDs.SteeringPump
Dim batteryElectricAuxOnly = JobType.IsOneOf(VectoSimulationJobType.BatteryElectricVehicle, VectoSimulationJobType.IEPC_S, VectoSimulationJobType.SerialHybridVehicle)
Dim notSteered = (New String() {AxleNotSteered}).Concat(If(batteryElectricAuxOnly, DeclarationData.SteeringPump.FullyElectricTechnologies(), DeclarationData.SteeringPump.GetTechnologies())).ToArray() Dim notSteered = (New String() {AxleNotSteered}).Concat(If(batteryElectricAuxOnly, DeclarationData.SteeringPump.FullyElectricTechnologies(), DeclarationData.SteeringPump.GetTechnologies())).ToArray()
CbTech.DataSource = Dim steeringTechs = If(
If(batteryElectricAuxOnly,DeclarationData.SteeringPump.FullyElectricTechnologies() ,DeclarationData.SteeringPump.GetTechnologies()).Select(Function(x) New With {.Caption = x, .Value = x}).ToArray() batteryElectricAuxOnly,
DeclarationData.SteeringPump.FullyElectricTechnologies(),
DeclarationData.SteeringPump.GetTechnologies()
)
CbTech.DataSource = steeringTechs.Select(Function(x) New With {.Caption = x, .Value = x}).ToArray()
CbTech2.DataSource = notSteered.Select(Function(x) New With {.Caption = x, .Value = x}).ToArray() CbTech2.DataSource = notSteered.Select(Function(x) New With {.Caption = x, .Value = x}).ToArray()
CbTech3.DataSource = notSteered.Select(Function(x) New With {.Caption = x, .Value = x}).ToArray() CbTech3.DataSource = notSteered.Select(Function(x) New With {.Caption = x, .Value = x}).ToArray()
CbTech4.DataSource = notSteered.Select(Function(x) New With {.Caption = x, .Value = x}).ToArray() CbTech4.DataSource = notSteered.Select(Function(x) New With {.Caption = x, .Value = x}).ToArray()
...@@ -94,7 +98,7 @@ Public Class VehicleAuxiliariesDialog ...@@ -94,7 +98,7 @@ Public Class VehicleAuxiliariesDialog
DeclarationData.ElectricSystem.GetTechnologies().Select(Function(x) New With {.Caption = x, .Value = x}).ToArray() DeclarationData.ElectricSystem.GetTechnologies().Select(Function(x) New With {.Caption = x, .Value = x}).ToArray()
Case VectoCore.Configuration.Constants.Auxiliaries.IDs.PneumaticSystem Case VectoCore.Configuration.Constants.Auxiliaries.IDs.PneumaticSystem
CbTech.DataSource = CbTech.DataSource =
if(batteryElectricAuxOnly, DeclarationData.PneumaticSystem.FullyElectricTechnologies(), DeclarationData.PneumaticSystem.GetTechnologies()).Select(Function(x) New With {.Caption = x, .Value = x}).ToArray() If(JobType.IsOneOf(VectoSimulationJobType.BatteryElectricVehicle), DeclarationData.PneumaticSystem.FullyElectricTechnologies(), DeclarationData.PneumaticSystem.GetTechnologies()).Select(Function(x) New With {.Caption = x, .Value = x}).ToArray()
End Select End Select
If CbTech.Items.Count > 0 Then If CbTech.Items.Count > 0 Then
'CbTech.SelectedIndex = 0 'CbTech.SelectedIndex = 0
......
...@@ -5,6 +5,5 @@ Dual displacement , 1 , 1 , 0 , 0 , ...@@ -5,6 +5,5 @@ Dual displacement , 1 , 1 , 0 , 0 ,
Dual displacement with elec. control , 1 , 1 , 0 , 0 , 0 ,0.80 ,0.85 ,0.85 Dual displacement with elec. control , 1 , 1 , 0 , 0 , 0 ,0.80 ,0.85 ,0.85
Variable displacement mech. controlled , 1 , 1 , 0 , 0 , 0 ,0.75 ,0.75 ,0.75 Variable displacement mech. controlled , 1 , 1 , 0 , 0 , 0 ,0.75 ,0.75 ,0.75
Variable displacement elec. controlled , 1 , 1 , 0 , 0 , 0 ,0.6 ,0.6 ,0.6 Variable displacement elec. controlled , 1 , 1 , 0 , 0 , 0 ,0.6 ,0.6 ,0.6
Electric , 1 , 1 , 0 , 0 , 0 ,0 ,2.143 ,1.429
Electric driven pump , 1 , 1 , 1 , 1 , 1 ,0.857 ,0.857 ,0.857 Electric driven pump , 1 , 1 , 1 , 1 , 1 ,0.857 ,0.857 ,0.857
Full electric steering gear , 1 , 1 , 1 , 1 , 1 ,0 ,0.143 ,1.429 Full electric steering gear , 1 , 1 , 1 , 1 , 1 ,0 ,0.143 ,1.429
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment