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

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

bugfix for certain testcases

adding more testcases for further configurations, refactor tests, added assertions for powertrain configuration
parent b01a0f38
No related branches found
No related tags found
No related merge requests found
......@@ -131,8 +131,8 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
var signals = Auxiliaries.Signals;
// trick bus auxiliaries that ice is on - all auxiliaries are considered. ESS is corrected in post-processing
signals.EngineStopped = false;
signals.VehicleStopped = false;
signals.EngineStopped = !DataBus.EngineCtl.CombustionEngineOn; //false;
signals.VehicleStopped = DataBus.VehicleInfo.VehicleStopped; // false;
CurrentState.PowerDemand = GetBusAuxPowerDemand(absTime, dt, torquePowerTrain, angularSpeed, dryRun) +
(AdditionalAux?.PowerDemandESSEngineOn(0.SI<Second>(), 1.SI<Second>(), angularSpeed) ?? 0.SI<Watt>());
......
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