From d6aa0bc0f2afbea72085c70858a99c63afb439ca Mon Sep 17 00:00:00 2001 From: Markus Quaritsch <markus.quaritsch@tugraz.at> Date: Mon, 15 Jul 2019 14:10:22 +0200 Subject: [PATCH] another testcase --- .../Impl/EngineeringModeVectoRunDataFactory.cs | 1 + .../Integration/RoadSweepers/RoadSweeperTests.cs | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/VectoCore/VectoCore/InputData/Reader/Impl/EngineeringModeVectoRunDataFactory.cs b/VectoCore/VectoCore/InputData/Reader/Impl/EngineeringModeVectoRunDataFactory.cs index fed7fbadbb..025058946e 100644 --- a/VectoCore/VectoCore/InputData/Reader/Impl/EngineeringModeVectoRunDataFactory.cs +++ b/VectoCore/VectoCore/InputData/Reader/Impl/EngineeringModeVectoRunDataFactory.cs @@ -83,6 +83,7 @@ namespace TUGraz.VectoCore.InputData.Reader.Impl gearboxData.Gears[InputDataProvider.JobInputData.Vehicle.PTO_DriveGear.Value].Ratio / (angledriveData?.Angledrive.Ratio ?? 1.0) * vehicle.DynamicTyreRadius; driver.PTODriveRoadsweepingGear = InputDataProvider.JobInputData.Vehicle.PTO_DriveGear.Value; + engineData.PTORoadSweepEngineSpeed = InputDataProvider.JobInputData.Vehicle.PTO_DriveEngineSpeed; } diff --git a/VectoCore/VectoCoreTest/Integration/RoadSweepers/RoadSweeperTests.cs b/VectoCore/VectoCoreTest/Integration/RoadSweepers/RoadSweeperTests.cs index f795d7251f..3da74f54bf 100644 --- a/VectoCore/VectoCoreTest/Integration/RoadSweepers/RoadSweeperTests.cs +++ b/VectoCore/VectoCoreTest/Integration/RoadSweepers/RoadSweeperTests.cs @@ -87,6 +87,18 @@ namespace TUGraz.VectoCore.Tests.Integration.RoadSweepers EngineeringRunWithCycle(RoadSweeperJob, cycle, "Accelerate_Drive_switch_PTO_on_during_drive_with_higher_speed"); } + + [TestCase()] + public void RoadSweeper_ChangePTOLoadDuringSweeping() + { + var cycle = " 0, 0, 0, 5, 0, 3, 0 \n" + + " 1, 8, 0, 0, 2, 3, 10 \n" + + " 400, 8, 0, 0, 2, 3, 20 \n" + + "1000, 0, 0, 5, 0, 3, 0 \n"; + EngineeringRunWithCycle(RoadSweeperJob, cycle, "Accelerate_Drive_change_PTO_load_while_sweeping"); + } + + [TestCase(RoadSweeperJob, 1, TestName = "RoadSweeper 1")] public void RoadSweeperTest(string jobFile, int idx) { -- GitLab