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

Merge pull request #613 in VECTO/vecto-sim from...

Merge pull request #613 in VECTO/vecto-sim from ~EMQUARIMA/vecto-sim:feature/VECTO-662-updates-for-mission-profiles-urban-delivery-and-construction to develop

* commit 'b1c2b422':
  skip re-running a simulation run
  allow slipping clutch also in second gear (required in construction cycle with limited engine speed)
  debugging failed tests
  fix in cycle zip
  removing bogus entry
  new declaration cycles for construction and urban delivery
  fix in cycle-compressor
parents 932dca4c b1c2b422
No related branches found
No related tags found
No related merge requests found
......@@ -64,8 +64,8 @@ namespace DeclarationCycleZip
}
var row = table.NewRow();
row["<s>"] = x.Distance.Value().ToString(CultureInfo.InvariantCulture);
row["<v>"] = x.VehicleTargetSpeed.ConvertToKiloMeterPerHour().ToString(CultureInfo.InvariantCulture);
row["<grad>"] = x.RoadGradientPercent.Value().ToString(CultureInfo.InvariantCulture);
row["<v>"] = x.VehicleTargetSpeed.ConvertToKiloMeterPerHour().Value.ToString(CultureInfo.InvariantCulture);
row["<grad>"] = x.RoadGradientPercent.Value().ToString(CultureInfo.InvariantCulture);
row["<stop>"] = x.StoppingTime.Value().ToString(CultureInfo.InvariantCulture);
table.Rows.Add(row);
lastDistance = x.Distance;
......
......@@ -101,6 +101,9 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl
public void Run()
{
if (Container.RunStatus != Status.Pending) {
return;
}
var debug = new DebugData();
Log.Info("VectoJob started running.");
......
......@@ -114,7 +114,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
NewtonMeter torqueIn;
PerSecond angularVelocityIn;
var slippingClutchWhenDriving = (DataBus.Gear == 1 && DataBus.DriverBehavior != DrivingBehavior.Braking);
var slippingClutchWhenDriving = (DataBus.Gear <= 2 && DataBus.DriverBehavior != DrivingBehavior.Braking);
var slippingClutchDuringBraking = DataBus.Gear == 1 && DataBus.DriverBehavior == DrivingBehavior.Braking && outTorque > 0;
//var slippingClutchWhenDriving = (DataBus.Gear == 1 && outTorque > 0);
AddClutchLoss(outTorque, outAngularVelocity,
......
......@@ -29,6 +29,7 @@
* Martin Rexeis, rexeis@ivt.tugraz.at, IVT, Graz University of Technology
*/
using System.IO;
using System.Linq;
using NUnit.Framework;
using TUGraz.VectoCommon.Models;
......@@ -62,6 +63,13 @@ namespace TUGraz.VectoCore.Tests.Integration
const string EngineSpeedLimitJobDecl =
@"TestData\Integration\DeclarationMode\Class2_RigidTruck_4x2_engineSpeedlimit\Class2_RigidTruck_DECL.vecto";
[OneTimeSetUp]
public void RunBeforeAnyTests()
{
Directory.SetCurrentDirectory(TestContext.CurrentContext.TestDirectory);
}
[TestCase()]
public void TestGearboxTorqueLimitsAbove90FLD()
{
......
......@@ -109,7 +109,8 @@ namespace TUGraz.VectoCore.Tests.Integration
AirdragData = airdragData,
AxleGearData = axleGearData,
GearboxData = gearboxData,
SimulationType = SimulationType.DistanceCycle
SimulationType = SimulationType.DistanceCycle,
Cycle = cycleData
};
container.RunData = runData;
......
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