diff --git a/VectoCore/VectoCoreTest/Models/Declaration/ShiftPolygonTest.cs b/VectoCore/VectoCoreTest/Models/Declaration/ShiftPolygonTest.cs index 9c3c38aff74e791160deb4daee68b2f250c14c27..8327aeb312830d0b4f815c112cf8a51ef0f897fd 100644 --- a/VectoCore/VectoCoreTest/Models/Declaration/ShiftPolygonTest.cs +++ b/VectoCore/VectoCoreTest/Models/Declaration/ShiftPolygonTest.cs @@ -412,9 +412,23 @@ namespace TUGraz.VectoCore.Tests.Models.Declaration } ShiftPolygonDrawer.DrawShiftPolygons(Path.GetDirectoryName(gearboxFile), fullLoadCurves, shiftPolygons, - "daimler_fullload_shiftpolygon-test_3.png", + "Generic_Class5-shiftlines.png", DeclarationData.Gearbox.TruckMaxAllowedSpeed / rdyn * axlegearRatio * gearboxData.Gears.Last().Ratio, upshiftOrig, downshiftTransformed, downshiftOrig); + + var shiftLines = ""; + var gear = 1; + foreach (var shiftPolygon in shiftPolygons) { + shiftLines += "Gear " + gear + "\n"; + shiftLines += "Upshift\n"; + foreach (var shiftPolygonEntry in shiftPolygon.Upshift) { + shiftLines += string.Format("{0} {1}\n", shiftPolygonEntry.AngularSpeed.AsRPM, shiftPolygonEntry.Torque.Value()); + } + shiftLines += "Downshift\n"; + foreach (var shiftPolygonEntry in shiftPolygon.Downshift) { + shiftLines += string.Format("{0} {1}\n", shiftPolygonEntry.AngularSpeed.AsRPM, shiftPolygonEntry.Torque.Value()); + } + } } }