Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit ed2788e9 authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

fix testcases after making soc exponent in cost function a parameter,

fix in combustion engine when vehicle stops
parent 5792db04
No related branches found
No related tags found
No related merge requests found
......@@ -84,7 +84,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl {
//throw new VectoSimulationException("Combustion engine cannot supply outtorque when switched off (T_out: {0})", outTorque);
}
CurrentState.EngineOn = false;
CurrentState.EngineSpeed = DataBus.VehicleInfo.VehicleStopped ? ModelData.IdleSpeed : outAngularVelocity; //ModelData.IdleSpeed;
CurrentState.EngineSpeed = DataBus.VehicleInfo.VehicleStopped || outAngularVelocity.IsEqual(0) ? ModelData.IdleSpeed : outAngularVelocity; //ModelData.IdleSpeed;
CurrentState.EngineTorque = 0.SI<NewtonMeter>();
CurrentState.EngineTorqueOut = 0.SI<NewtonMeter>();
CurrentState.EnginePower = 0.SI<Watt>();
......
......@@ -1360,6 +1360,7 @@ namespace TUGraz.VectoCore.Tests.Integration.Hybrid
MinICEOnTime = 3.SI<Second>(),
ICEStartPenaltyFactor = 0,
//MaxDrivetrainPower = maxDriveTrainPower ?? 1e12.SI<Watt>(),
CostFactorSOCExponent = 5,
};
}
......
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