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

fix: default engine data for GUI validation

parent 226acf83
No related branches found
No related tags found
No related merge requests found
......@@ -258,6 +258,7 @@ Public Class Gearbox
writer.WriteLine("engine speed, full load torque, motoring torque")
writer.WriteLine(" 500, 2000, -500")
writer.WriteLine("2500, 2000, -500")
writer.WriteLine("3000, 0, -500")
writer.Flush()
fldData.Seek(0, SeekOrigin.Begin)
Dim retVal As CombustionEngineData = New CombustionEngineData() With {
......@@ -267,7 +268,7 @@ Public Class Gearbox
Dim fldCurve As EngineFullLoadCurve = FullLoadCurveReader.Create(VectoCSVFile.ReadStream(fldData))
Dim fullLoadCurves As Dictionary(Of UInteger, EngineFullLoadCurve) =
New Dictionary(Of UInteger, EngineFullLoadCurve)()
fullLoadCurves(0) = FullLoadCurveReader.Create(VectoCSVFile.ReadStream(fldData))
fullLoadCurves(0) = fldCurve
fullLoadCurves(0).EngineData = retVal
For i As Integer = 0 To gears.Count - 1
fullLoadCurves(CType(i + 1, UInteger)) = AbstractSimulationDataAdapter.IntersectFullLoadCurves(fullLoadCurves(0),
......
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