diff --git a/VectoCore/VectoCoreTest/Models/Declaration/ShiftPolygonTest.cs b/VectoCore/VectoCoreTest/Models/Declaration/ShiftPolygonTest.cs index 58d99663d8de1441a0133fd7739c9e0e2dc4bfce..9c3c38aff74e791160deb4daee68b2f250c14c27 100644 --- a/VectoCore/VectoCoreTest/Models/Declaration/ShiftPolygonTest.cs +++ b/VectoCore/VectoCoreTest/Models/Declaration/ShiftPolygonTest.cs @@ -457,7 +457,7 @@ namespace TUGraz.VectoCore.Tests.Models.Declaration }; engineData.FullLoadCurve.EngineData = engineData; - var gearboxData = new JSONGearboxDataV5(JSONInputDataFactory.ReadFile(Path.Combine(BasePath, gearboxFile)), + var gearboxData = new JSONGearboxDataV6(JSONInputDataFactory.ReadFile(Path.Combine(BasePath, gearboxFile)), Path.Combine(BasePath, gearboxFile)); var shiftPolygons = new List<ShiftPolygon>(); @@ -486,6 +486,20 @@ namespace TUGraz.VectoCore.Tests.Models.Declaration imageFile, DeclarationData.Gearbox.TruckMaxAllowedSpeed / rdyn.SI<Meter>() * axlegearRatio * gearboxData.Gears.Last().Ratio, upshiftOrig, downshiftTransformed); + var str = ""; + var g = 1; + foreach (var shiftPolygon in shiftPolygons) { + str += "Gear " + g + "\n"; + str += "downshift\n"; + foreach (var entry in shiftPolygon.Downshift) { + str += string.Format("{0} {1}\n", entry.AngularSpeed.AsRPM, entry.Torque.Value()); + } + str += "upshift\n"; + foreach (var entry in shiftPolygon.Upshift) { + str += string.Format("{0} {1}\n", entry.AngularSpeed.AsRPM, entry.Torque.Value()); + } + g++; + } } public static void ComputShiftPolygonPoints(int gear, FullLoadCurve fullLoadCurve,